sparc: fix implicit use of spitfire.h in pcr.c and of_device_64.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 1 Aug 2011 17:42:48 +0000 (13:42 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:30:51 +0000 (19:30 -0400)
To resolve these on 64bit allnoconfig builds:

  CC      arch/sparc/kernel/pcr.o
arch/sparc/kernel/pcr.c: In function 'register_perf_hsvc':
arch/sparc/kernel/pcr.c:102: error: 'tlb_type' undeclared (first use in this function)

  CC      arch/sparc/kernel/of_device_64.o
arch/sparc/kernel/of_device_64.c: In function 'build_device_resources':
arch/sparc/kernel/of_device_64.c:406: error: 'tlb_type' undeclared (first use in this function)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/sparc/kernel/of_device_64.c
arch/sparc/kernel/pcr.c

index 3bb2eace58cf0b4ea5ec2f08b34228904b335074..6ecaefc23beb8e66d7761f44d87de8038d72bdcf 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/irq.h>
 #include <linux/of_device.h>
 #include <linux/of_platform.h>
+#include <asm/spitfire.h>
 
 #include "of_device_common.h"
 
index 343b0f9e2e7b704678e6f1d4b83609fe19cd6bbe..708406d72bb1361844e73bd3b93ef01fe6fe0650 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/pil.h>
 #include <asm/pcr.h>
 #include <asm/nmi.h>
+#include <asm/spitfire.h>
 
 /* This code is shared between various users of the performance
  * counters.  Users will be oprofile, pseudo-NMI watchdog, and the