From 6096f427ed8efff6198f2330f1756f9381c8a8ec Mon Sep 17 00:00:00 2001 From: Brian Masney Date: Sun, 22 Feb 2026 18:43:47 -0500 Subject: [PATCH] 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 --- drivers/irqchip/irq-pic32-evic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/irqchip/irq-pic32-evic.c b/drivers/irqchip/irq-pic32-evic.c index afb700265451..ecea7cb3ba84 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