diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index 0e2bffe2e203175d53d0673dd4b64dc00107b2c3..a84a4efc7fe6c5d8015bdd981df0b67ab22e2f88 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c @@ -59,6 +59,7 @@ #include #include #include +#include /* * Machine setup.. diff --git a/include/asm-x86/mce.h b/include/asm-x86/mce.h index df304fd89c27860e9c709d78a5261da6c2af77a7..e6ff507a73b037ccf92da036064c1767f3dc4559 100644 --- a/include/asm-x86/mce.h +++ b/include/asm-x86/mce.h @@ -85,14 +85,7 @@ struct mce_log { #ifdef __KERNEL__ #ifdef CONFIG_X86_32 -#ifdef CONFIG_X86_MCE -extern void mcheck_init(struct cpuinfo_x86 *c); -#else -#define mcheck_init(c) do {} while(0) -#endif - extern int mce_disabled; - #else /* CONFIG_X86_32 */ #include @@ -121,6 +114,13 @@ extern int mce_notify_user(void); #endif /* !CONFIG_X86_32 */ + + +#ifdef CONFIG_X86_MCE +extern void mcheck_init(struct cpuinfo_x86 *c); +#else +#define mcheck_init(c) do { } while (0) +#endif extern void stop_mce(void); extern void restart_mce(void); diff --git a/include/asm-x86/proto.h b/include/asm-x86/proto.h index b10cd1b8208965e49f30ce3d5a0ad40708b7fe5e..02420dea73c6315101bce016af68a569e3726459 100644 --- a/include/asm-x86/proto.h +++ b/include/asm-x86/proto.h @@ -13,7 +13,6 @@ extern void pda_init(int); extern void early_idt_handler(void); -extern void mcheck_init(struct cpuinfo_x86 *c); extern void init_memory_mapping(unsigned long start, unsigned long end); extern void system_call(void);