Commit dbca1df4 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by H. Peter Anvin

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: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent a7c4e686
#ifndef _ASM_X86_SETUP_H #ifndef _ASM_X86_SETUP_H
#define _ASM_X86_SETUP_H #define _ASM_X86_SETUP_H
#ifdef __KERNEL__
#define COMMAND_LINE_SIZE 2048 #define COMMAND_LINE_SIZE 2048
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
...@@ -8,10 +10,8 @@ ...@@ -8,10 +10,8 @@
/* Interrupt control for vSMPowered x86_64 systems */ /* Interrupt control for vSMPowered x86_64 systems */
void vsmp_init(void); void vsmp_init(void);
void setup_bios_corruption_check(void); void setup_bios_corruption_check(void);
#ifdef CONFIG_X86_VISWS #ifdef CONFIG_X86_VISWS
extern void visws_early_detect(void); extern void visws_early_detect(void);
extern int is_visws_box(void); extern int is_visws_box(void);
...@@ -56,8 +56,6 @@ extern unsigned long saved_video_mode; ...@@ -56,8 +56,6 @@ extern unsigned long saved_video_mode;
#endif #endif
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#ifdef __KERNEL__
#ifdef __i386__ #ifdef __i386__
#include <linux/pfn.h> #include <linux/pfn.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment