Skip to contentSkip to conversation

sparc: fix hardirq.h removal fallout

PATCH Applied Sam Ravnborg 2 participants 2 messages Dec 21, 2008 – Dec 26, 2008 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc: fix hardirq.h removal fallout

When hardirq.h are removed from asm-generic/local.h a few bits fails to build. Fix these upfront. Reported by Alexey.

Cc Alexey Dobriyan <[email protected]>

---

When I removed hardirq.h from local.h I had to apply a similar patch like this to drivers/base/topology.c but I assume this is dealt with before the removal hits mainline.

Based on the assumption that the topology.c change is not sparc specific but I did not test this.

The following changes are sparc specific and needed for sparc64 when hardirq is removed form local.h.

Sam

 arch/sparc/kernel/mdesc.c |    1 +
 arch/sparc/kernel/sysfs.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
arch/sparc/kernel/mdesc.c +1 -0
index dde52bc..3c539a6 100644
@@ -11,6 +11,7 @@
 #include <linux/mm.h>
 #include <linux/miscdevice.h>
 
+#include <asm/cpudata.h>
 #include <asm/hypervisor.h>
 #include <asm/mdesc.h>
 #include <asm/prom.h>
arch/sparc/kernel/sysfs.c +1 -0
index 84e5ce1..d28f496 100644
@@ -8,6 +8,7 @@
 #include <linux/percpu.h>
 #include <linux/init.h>
 
+#include <asm/cpudata.h>
 #include <asm/hypervisor.h>
 #include <asm/spitfire.h>
 
Signature · 1 line
1.6.0.2.GIT
maintainer Applied
#1 lore raw

From: Sam Ravnborg <[email protected]>
Date: Sun, 21 Dec 2008 21:45:59 +0100

Quoted 5 lines

When hardirq.h are removed from asm-generic/local.h a few bits fails to build. Fix these upfront. Reported by Alexey.

Applied to sparc-next-2.6, thanks Sam.