summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/setup.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2014-05-01 23:12:23 +0200
committerH. Peter Anvin <hpa@linux.intel.com>2014-05-01 23:16:15 +0200
commite1fe9ed8d2a4937510d0d60e20705035c2609aea (patch)
treed749d9eea67112d91ee90a617d3aba009014e40f /arch/x86/include/asm/setup.h
parentx86-32, espfix: Remove filter for espfix32 due to race (diff)
downloadlinux-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/setup.h')
-rw-r--r--arch/x86/include/asm/setup.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h
index 9e3be3329a7e..ff4e7b236e21 100644
--- a/arch/x86/include/asm/setup.h
+++ b/arch/x86/include/asm/setup.h
@@ -57,11 +57,10 @@ extern void x86_ce4100_early_setup(void);
static inline void x86_ce4100_early_setup(void) { }
#endif
-extern void init_espfix_bsp(void);
-extern void init_espfix_ap(void);
-
#ifndef _SETUP
+#include <asm/espfix.h>
+
/*
* This is set up by the setup-routine at boot-time
*/