From: Brian Masney Date: Sun, 22 Feb 2026 23:43:47 +0000 (-0500) Subject: irqchip/irq-pic32-evic: Only include asm headers when compiling for MIPS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6096f427ed8efff6198f2330f1756f9381c8a8ec;p=thirdparty%2Flinux.git irqchip/irq-pic32-evic: Only include asm headers when compiling for MIPS 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 Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260222-irqchip-pic32-v1-4-37f50d1f14af@redhat.com --- diff --git a/drivers/irqchip/irq-pic32-evic.c b/drivers/irqchip/irq-pic32-evic.c index afb7002654515..ecea7cb3ba849 100644 --- a/drivers/irqchip/irq-pic32-evic.c +++ b/drivers/irqchip/irq-pic32-evic.c @@ -15,8 +15,10 @@ #include #include +#ifdef CONFIG_MIPS #include #include +#endif #define REG_INTCON 0x0000 #define REG_INTSTAT 0x0020