[tip: irq/drivers] irqchip/irq-pic32-evic: Define board_bind_eic_interrupt for !MIPS builds

tip-bot2 for Brian Masney posted 1 patch 1 month, 3 weeks ago
drivers/irqchip/irq-pic32-evic.c | 2 ++
1 file changed, 2 insertions(+)
[tip: irq/drivers] irqchip/irq-pic32-evic: Define board_bind_eic_interrupt for !MIPS builds
Posted by tip-bot2 for Brian Masney 1 month, 3 weeks ago
The following commit has been merged into the irq/drivers branch of tip:

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

irqchip/irq-pic32-evic: Define board_bind_eic_interrupt for !MIPS builds

The board_bind_eic_interrupt() pointer is MIPS specific. When compiling for
other architectures it is undefined which breaks the build.

Define it as a static variable when building for non MIPS architectures
with COMPILE_TEST.

Signed-off-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260222-irqchip-pic32-v1-3-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 1eeb0e6..afb7002 100644
--- a/drivers/irqchip/irq-pic32-evic.c
+++ b/drivers/irqchip/irq-pic32-evic.c
@@ -48,6 +48,8 @@ asmlinkage void __weak plat_irq_dispatch(void)
 	hwirq = readl(evic_base + REG_INTSTAT) & 0xFF;
 	do_domain_IRQ(evic_irq_domain, hwirq);
 }
+#else
+static void (*board_bind_eic_interrupt)(int irq, int regset);
 #endif
 
 static struct evic_chip_data *irqd_to_priv(struct irq_data *data)