]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
irqchip/irq-pic32-evic: Only include asm headers when compiling for MIPS
authorBrian Masney <bmasney@redhat.com>
Sun, 22 Feb 2026 23:43:47 +0000 (18:43 -0500)
committerThomas Gleixner <tglx@kernel.org>
Tue, 24 Feb 2026 07:15:43 +0000 (08:15 +0100)
The asm headers are not actually needed when compiling on architectures
other than MIPS, and traps.h is not available on all architectures.

Include them on MIPS systems so that this driver can be compiled on other
architectures.

[ tglx: Massaged change log ]

Signed-off-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260222-irqchip-pic32-v1-4-37f50d1f14af@redhat.com
drivers/irqchip/irq-pic32-evic.c

index afb70026545156fdab50f48bc45dbc34fade3011..ecea7cb3ba849a3cbc96213d96f5090feafde5eb 100644 (file)
 #include <linux/irq.h>
 #include <linux/platform_data/pic32.h>
 
+#ifdef CONFIG_MIPS
 #include <asm/irq.h>
 #include <asm/traps.h>
+#endif
 
 #define REG_INTCON     0x0000
 #define REG_INTSTAT    0x0020