[tip: irq/drivers] irqchip/irq-pic32-evic: Don't define plat_irq_dispatch() for !MIPS builds
From: tip-bot2 for Brian Masney
Date: Tue Feb 24 2026 - 02:21:41 EST
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: 15f9b251fe404997eef1d7685877479364c4cfcb
Gitweb: https://git.kernel.org/tip/15f9b251fe404997eef1d7685877479364c4cfcb
Author: Brian Masney <bmasney@xxxxxxxxxx>
AuthorDate: Sun, 22 Feb 2026 18:43:45 -05:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Tue, 24 Feb 2026 08:15:43 +01:00
irqchip/irq-pic32-evic: Don't define plat_irq_dispatch() for !MIPS builds
plat_irq_dispatch() is specific to the MIPS architecture, so only include
it when the driver is compiled on that architecture. This is in preparation
for allowing this driver to be compiled on all architectures.
Signed-off-by: Brian Masney <bmasney@xxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20260222-irqchip-pic32-v1-2-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 325b97a..1eeb0e6 100644
--- a/drivers/irqchip/irq-pic32-evic.c
+++ b/drivers/irqchip/irq-pic32-evic.c
@@ -40,6 +40,7 @@ struct evic_chip_data {
static struct irq_domain *evic_irq_domain;
static void __iomem *evic_base;
+#ifdef CONFIG_MIPS
asmlinkage void __weak plat_irq_dispatch(void)
{
unsigned int hwirq;
@@ -47,6 +48,7 @@ asmlinkage void __weak plat_irq_dispatch(void)
hwirq = readl(evic_base + REG_INTSTAT) & 0xFF;
do_domain_IRQ(evic_irq_domain, hwirq);
}
+#endif
static struct evic_chip_data *irqd_to_priv(struct irq_data *data)
{