x86/setup.h: hide kernel stuff behind __KERNEL__ for userspace
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__.
Signed-off-by Mike Frysinger <[email protected]>
--- arch/x86/include/asm/setup.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/include/asm/setup.h +2 -2
@@ -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