x86: headers cleanup - setup.h
authorCyrill Gorcunov <gorcunov@gmail.com>
Wed, 14 Jan 2009 20:37:50 +0000 (23:37 +0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Mar 2009 17:29:49 +0000 (18:29 +0100)
Impact: cleanup

'make headers_check' warn us about leaking of kernel private
(mostly compile time vars) data to userspace in headers. Fix it.

Guard this one by __KERNEL__.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/setup.h

index 5a3a1371575610a6b2bec11501691dc523cba7a0..c2308f5250fd643206c7d00f90e62a1c21e95b93 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _ASM_X86_SETUP_H
 #define _ASM_X86_SETUP_H
 
+#ifdef __KERNEL__
+
 #define COMMAND_LINE_SIZE 2048
 
 #ifndef __ASSEMBLY__
@@ -33,8 +35,6 @@ struct x86_quirks {
 
 #endif /* __ASSEMBLY__ */
 
-#ifdef __KERNEL__
-
 #ifdef __i386__
 
 #include <linux/pfn.h>