[PATCH 4/5] irqchip/irq-pic32-evic: only include asm headers when compiling on MIPS
From: Brian Masney
Date: Sun Feb 22 2026 - 18:47:08 EST
The asm headers are not actually needed when compiling on architectures
other than MIPS, and these headers are not available on all
architectures. Let's only include them on MIPS systems so that this
driver can be compiled on other architectures.
Signed-off-by: Brian Masney <bmasney@xxxxxxxxxx>
---
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 82561f098c377a0be49d3556d10172a58ba7d77b..920022c12f1954ae84316b7075a1691a185de064 100644
--- a/drivers/irqchip/irq-pic32-evic.c
+++ b/drivers/irqchip/irq-pic32-evic.c
@@ -15,8 +15,10 @@
#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
--
2.53.0