These seven patches replace [PATCH 6/10], or in the second send, patches 6a. 6b, 6c and 6d. There are more patches because Andi hassled me about extern decls, so I had to expose some things. Tiny patches, but worth separating because you never know when such changes will break something. Compiles and runs here... Thanks, Rusty.
Rusty Russell
2007-Apr-18  17:49 UTC
[PATCH 1 of 7] lguest: Move mce_disabled to asm/mce.h so lguest can use it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
==================================================================---
a/arch/i386/kernel/cpu/mcheck/mce.h
+++ b/arch/i386/kernel/cpu/mcheck/mce.h
@@ -1,4 +1,5 @@
 #include <linux/init.h>
+#include <asm/mce.h>
 
 void amd_mcheck_init(struct cpuinfo_x86 *c);
 void intel_p4_mcheck_init(struct cpuinfo_x86 *c);
@@ -9,6 +10,5 @@ void winchip_mcheck_init(struct cpuinfo_
 /* Call the installed machine check handler for this CPU setup. */
 extern fastcall void (*machine_check_vector)(struct pt_regs *, long
error_code);
 
-extern int mce_disabled;
 extern int nr_mce_banks;
 
==================================================================---
a/include/asm-i386/mce.h
+++ b/include/asm-i386/mce.h
@@ -3,3 +3,5 @@ extern void mcheck_init(struct cpuinfo_x
 #else
 #define mcheck_init(c) do {} while(0)
 #endif
+
+extern int mce_disabled;