summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/espfix_64.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2014-05-01 14:12:23 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2014-05-01 14:16:15 -0700
commite1fe9ed8d2a4937510d0d60e20705035c2609aea (patch)
treed749d9eea67112d91ee90a617d3aba009014e40f /arch/x86/kernel/espfix_64.c
parent246f2d2ee1d715e1077fc47d61c394569c8ee692 (diff)
downloadblackbird-op-linux-e1fe9ed8d2a4937510d0d60e20705035c2609aea.tar.gz
blackbird-op-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/kernel/espfix_64.c')
-rw-r--r--arch/x86/kernel/espfix_64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/espfix_64.c b/arch/x86/kernel/espfix_64.c
index 8a64da36310f..6afbb16e9b79 100644
--- a/arch/x86/kernel/espfix_64.c
+++ b/arch/x86/kernel/espfix_64.c
@@ -40,6 +40,7 @@
#include <asm/pgtable.h>
#include <asm/pgalloc.h>
#include <asm/setup.h>
+#include <asm/espfix.h>
/*
* Note: we only need 6*8 = 48 bytes for the espfix stack, but round
OpenPOWER on IntegriCloud