x86, nmi, drivers: Fix nmi splitup build bug
authorIngo Molnar <mingo@elte.hu>
Thu, 6 Oct 2011 12:20:27 +0000 (14:20 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 10 Oct 2011 04:57:21 +0000 (06:57 +0200)
nmi.c needs an #include <linux/mca.h>:

 arch/x86/kernel/nmi.c: In function ‘unknown_nmi_error’:
 arch/x86/kernel/nmi.c:286:6: error: ‘MCA_bus’ undeclared (first use in this function)
 arch/x86/kernel/nmi.c:286:6: note: each undeclared identifier is reported only once for each function it appears in

Another one is the hpwdt driver:

 drivers/watchdog/hpwdt.c:507:9: error: ‘NMI_DONE’ undeclared (first use in this function)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/nmi.c
drivers/watchdog/hpwdt.c

index d0eaa31..7ec5bd1 100644 (file)
@@ -18,6 +18,8 @@
 #include <linux/hardirq.h>
 #include <linux/slab.h>
 
+#include <linux/mca.h>
+
 #if defined(CONFIG_EDAC)
 #include <linux/edac.h>
 #endif
index 7e7feac..3774c9b 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/notifier.h>
 #include <asm/cacheflush.h>
 #endif /* CONFIG_HPWDT_NMI_DECODING */
+#include <asm/nmi.h>
 
 #define HPWDT_VERSION                  "1.3.0"
 #define SECS_TO_TICKS(secs)            ((secs) * 1000 / 128)