-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
H. Peter Anvin
committed
May 1, 2014
1 parent
246f2d2
commit e1fe9ed
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters