Skip to contentSkip to conversation

x86/setup.h: hide kernel stuff behind __KERNEL__ for userspace

PATCH New Mike Frysinger 1 participant 1 message Dec 27, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/setup.h: hide kernel stuff behind __KERNEL__ for userspace

The x86 setup.h bleeds a bunch of kernel functions/structs to userspace, so move them behind __KERNEL__.

---
 arch/x86/include/asm/setup.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/include/asm/setup.h +2 -2
index f12d372..e4c80fe 100644
@@ -3,6 +3,8 @@
 
 #define COMMAND_LINE_SIZE 2048
 
+#ifdef __KERNEL__
+
 #ifndef __ASSEMBLY__
 
 /* Interrupt control for vSMPowered x86_64 systems */
@@ -49,8 +51,6 @@ extern unsigned long saved_video_mode;
 #endif
 #endif /* __ASSEMBLY__ */
 
-#ifdef __KERNEL__
-
 #ifdef __i386__
 
 #include <linux/pfn.h>
Signature · 1 line
1.6.0.6