diff options
| author | Cyrill Gorcunov <gorcunov@gmail.com> | 2009-01-14 15:37:50 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-03-26 13:29:49 -0400 |
| commit | 17d140402e6f0fd5dde2fdf8d045e3f95f865663 (patch) | |
| tree | 4b2a1b5f07eb0ce92bb4b974bc11383ba0d5f934 | |
| parent | 5a54bd1307471c1cd0521402fe65e2057edcab2f (diff) | |
x86: headers cleanup - setup.h
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>
| -rw-r--r-- | 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 5a3a13715756..c2308f5250fd 100644 --- a/arch/x86/include/asm/setup.h +++ b/arch/x86/include/asm/setup.h | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #ifndef _ASM_X86_SETUP_H | 1 | #ifndef _ASM_X86_SETUP_H |
| 2 | #define _ASM_X86_SETUP_H | 2 | #define _ASM_X86_SETUP_H |
| 3 | 3 | ||
| 4 | #ifdef __KERNEL__ | ||
| 5 | |||
| 4 | #define COMMAND_LINE_SIZE 2048 | 6 | #define COMMAND_LINE_SIZE 2048 |
| 5 | 7 | ||
| 6 | #ifndef __ASSEMBLY__ | 8 | #ifndef __ASSEMBLY__ |
| @@ -33,8 +35,6 @@ struct x86_quirks { | |||
| 33 | 35 | ||
| 34 | #endif /* __ASSEMBLY__ */ | 36 | #endif /* __ASSEMBLY__ */ |
| 35 | 37 | ||
| 36 | #ifdef __KERNEL__ | ||
| 37 | |||
| 38 | #ifdef __i386__ | 38 | #ifdef __i386__ |
| 39 | 39 | ||
| 40 | #include <linux/pfn.h> | 40 | #include <linux/pfn.h> |
