Skip to content

Commit 9d46ce5

Browse files
committed
ARM: omap1: fix building gpio15xx
In some randconfig builds, the asm/irq.h header is not included in gpio15xx.c, so add an explicit include to avoid a build fialure: In file included from arch/arm/mach-omap1/gpio15xx.c:15: arch/arm/mach-omap1/irqs.h:99:34: error: 'NR_IRQS_LEGACY' undeclared here (not in a function) 99 | #define IH2_BASE (NR_IRQS_LEGACY + 32) | ^~~~~~~~~~~~~~ arch/arm/mach-omap1/irqs.h:105:38: note: in expansion of macro 'IH2_BASE' 105 | #define INT_MPUIO (5 + IH2_BASE) | ^~~~~~~~ arch/arm/mach-omap1/gpio15xx.c:28:27: note: in expansion of macro 'INT_MPUIO' 28 | .start = INT_MPUIO, | ^~~~~~~~~ Acked-by: Aaro Koskinen <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 980a637 commit 9d46ce5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/mach-omap1/gpio15xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/gpio.h>
1212
#include <linux/platform_data/gpio-omap.h>
1313
#include <linux/soc/ti/omap1-soc.h>
14+
#include <asm/irq.h>
1415

1516
#include "irqs.h"
1617

0 commit comments

Comments
 (0)