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

From: Mike Frysinger
Date: Sat Dec 27 2008 - 01:49:19 EST


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

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
arch/x86/include/asm/setup.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h
index f12d372..e4c80fe 100644
--- a/arch/x86/include/asm/setup.h
+++ b/arch/x86/include/asm/setup.h
@@ -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>
--
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/