Skip to contentSkip to conversation

x86: setjmp: including stdio is a no-no

PATCH In review Andrew Jones 3 participants 4 messages Mar 1, 2016 – Mar 2, 2016 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: setjmp: including stdio is a no-no

---
 x86/setjmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/setjmp.c +1 -1
index 46f0d9c5feb9b..fa331792d852d 100644
@@ -1,4 +1,4 @@
-#include "stdio.h"
+#include "libcflat.h"
 #include "setjmp.h"
 
 int main()
Signature · 1 line
2.4.3
#1 lore raw
Quoted 10 lines · Andrew Jones
---
 x86/setjmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/setjmp.c +0 -0
index 46f0d9c5feb9b..fa331792d852d 100644

x86/setjmp.c line 4

Quoted 5 lines
x86/setjmp.c +1 -1
@@ -1,4 +1,4 @@
-#include "stdio.h"
+#include "libcflat.h"
 #include "setjmp.h"
 
 int main()

Thanks! I always apply this patch locally.

maintainer
#2 lore raw
In reply to Andrew Jones
Quoted 11 lines · Andrew Jones
---
 x86/setjmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/setjmp.c +0 -0
index 46f0d9c5feb9b..fa331792d852d 100644

x86/setjmp.c line 4

Quoted 5 lines
x86/setjmp.c +1 -1
@@ -1,4 +1,4 @@
-#include "stdio.h"
+#include "libcflat.h"
 #include "setjmp.h"
 
 int main()

We probably should instead provide our own stdio.h. In the meanwhile, I've queued this and will push tomorrow.

Paolo

#3 lore raw
Quoted 15 lines · Paolo Bonzini
Quoted 14 lines · Andrew Jones
---
 x86/setjmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/setjmp.c +1 -1
index 46f0d9c5feb9b..fa331792d852d 100644
@@ -1,4 +1,4 @@
-#include "stdio.h"
+#include "libcflat.h"
 #include "setjmp.h"
 
Quoted 5 lines

x86/setjmp.c line 4

Quoted 2 lines
x86/setjmp.c +0 -0
 int main()

We probably should instead provide our own stdio.h. In the meanwhile, I've queued this and will push tomorrow.

Good idea. Added to the TODO.

Thanks,
drew

Quoted 6 lines

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html