x86, watchdog: Fix build error in hw_nmi.c
authorIngo Molnar <mingo@elte.hu>
Thu, 13 May 2010 07:12:39 +0000 (09:12 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 13 May 2010 07:12:39 +0000 (09:12 +0200)
On some configs the following build error triggers:

 arch/x86/kernel/apic/hw_nmi.c:35: error: 'apic' undeclared (first use in this function)
 arch/x86/kernel/apic/hw_nmi.c:35: error: (Each undeclared identifier is reported only once
 arch/x86/kernel/apic/hw_nmi.c:35: error: for each function it appears in.)

Because asm/apic.h was only included implicitly. Include it explicitly.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
LKML-Reference: <1273713674-8434-1-git-send-regression-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/hw_nmi.c

index 3b40082f03715fa13ecda71ab37a7fa76ee6b365..cefd6942f0e9198e260559c436f443e861ffb011 100644 (file)
@@ -8,6 +8,7 @@
  *  Bits copied from original nmi.c file
  *
  */
+#include <asm/apic.h>
 
 #include <linux/cpumask.h>
 #include <linux/kdebug.h>