diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2014-05-01 23:12:23 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-05-01 23:16:15 +0200 |
commit | e1fe9ed8d2a4937510d0d60e20705035c2609aea (patch) | |
tree | d749d9eea67112d91ee90a617d3aba009014e40f /arch/x86/include/asm/espfix.h | |
parent | x86-32, espfix: Remove filter for espfix32 due to race (diff) | |
download | linux-e1fe9ed8d2a4937510d0d60e20705035c2609aea.tar.xz linux-e1fe9ed8d2a4937510d0d60e20705035c2609aea.zip |
x86, espfix: Move espfix definitions into a separate header file
Sparse warns that the percpu variables aren't declared before they are
defined. Rather than hacking around it, move espfix definitions into
a proper header file.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/include/asm/espfix.h')
-rw-r--r-- | arch/x86/include/asm/espfix.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/x86/include/asm/espfix.h b/arch/x86/include/asm/espfix.h new file mode 100644 index 000000000000..729051c82b02 --- /dev/null +++ b/arch/x86/include/asm/espfix.h @@ -0,0 +1,16 @@ +#ifdef _ASM_X86_ESPFIX_H +#define _ASM_X86_ESPFIX_H + +#ifdef CONFIG_X86_64 + +#include <asm/percpu.h> + +DECLARE_PER_CPU_READ_MOSTLY(unsigned long, espfix_stack); +DECLARE_PER_CPU_READ_MOSTLY(unsigned long, espfix_waddr); + +extern void init_espfix_bsp(void); +extern void init_espfix_ap(void); + +#endif /* CONFIG_X86_64 */ + +#endif /* _ASM_X86_ESPFIX_H */ |