Skip to contentSkip to conversation

irqchip/bcm7038-l1: Fix build on ARM/ARM64

PATCH In review Florian Fainelli 2 participants 2 messages May 30, 2019 – Jun 7, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/bcm7038-l1: Fix build on ARM/ARM64

The driver uses cpu_logical_map[] which is defined under arch/{arm,arm64}/include/asm/smp_plat.h.

Fixes 5f7f0317ed28 ("IRQCHIP: Add new driver for BCM7038-style level 1 interrupt controllers")
---
 drivers/irqchip/irq-bcm7038-l1.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/irqchip/irq-bcm7038-l1.c +3 -0
index 0acebac1920b..970857a32508 100644
@@ -30,6 +30,9 @@
 #include <linux/types.h>
 #include <linux/irqchip.h>
 #include <linux/irqchip/chained_irq.h>
+#if defined(CONFIG_ARM) || defined(CONFIG_ARM64)
+#include <asm/smp_plat.h>
+#endif
 
 #define IRQS_PER_WORD		32
 #define REG_BYTES_PER_IRQ_WORD	(sizeof(u32) * 4)
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 5 lines · Florian Fainelli

The driver uses cpu_logical_map[] which is defined under arch/{arm,arm64}/include/asm/smp_plat.h.

Fixes 5f7f0317ed28 ("IRQCHIP: Add new driver for BCM7038-style level 1 interrupt controllers")

Please discard this patch, we won't need it with:

https://www.armlinux.org.uk/developer/patches/viewpatch.php?id=8866/1
and:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a02a532c2a6c79a898cd6c430fe3ad011d9aece3

Quoted 19 lines
---
 drivers/irqchip/irq-bcm7038-l1.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/irqchip/irq-bcm7038-l1.c +3 -0
index 0acebac1920b..970857a32508 100644
@@ -30,6 +30,9 @@
 #include <linux/types.h>
 #include <linux/irqchip.h>
 #include <linux/irqchip/chained_irq.h>
+#if defined(CONFIG_ARM) || defined(CONFIG_ARM64)
+#include <asm/smp_plat.h>
+#endif
 
 #define IRQS_PER_WORD		32
 #define REG_BYTES_PER_IRQ_WORD	(sizeof(u32) * 4)
Signature · 1 line
Florian