[tip: irq/drivers] irqchip/irq-pic32-evic: Only include asm headers when compiling for MIPS

From: tip-bot2 for Brian Masney

Date: Tue Feb 24 2026 - 02:21:59 EST


The following commit has been merged into the irq/drivers branch of tip:

Commit-ID: 6096f427ed8efff6198f2330f1756f9381c8a8ec
Gitweb: https://git.kernel.org/tip/6096f427ed8efff6198f2330f1756f9381c8a8ec
Author: Brian Masney <bmasney@xxxxxxxxxx>
AuthorDate: Sun, 22 Feb 2026 18:43:47 -05:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Tue, 24 Feb 2026 08:15:43 +01:00

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 <bmasney@xxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20260222-irqchip-pic32-v1-4-37f50d1f14af@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 afb7002..ecea7cb 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