[PATCH 2/5] MIPS: sgi-ip22: Add prototype for ip22_eisa_init() to header
From: Imre Kaloz
Date: Mon Oct 26 2026 - 09:54:27 EST
This fixes the following build warning with CONFIG_EISA=y:
arch/mips/sgi-ip22/ip22-eisa.c:95:12: warning: no previous prototype for 'ip22_eisa_init' [-Wmissing-prototypes]
Signed-off-by: Imre Kaloz <kaloz@xxxxxxxxxx>
---
arch/mips/include/asm/sgi/ip22.h | 1 +
arch/mips/sgi-ip22/ip22-int.c | 2 --
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/mips/include/asm/sgi/ip22.h b/arch/mips/include/asm/sgi/ip22.h
index 57942afb5c86..4bb2e2d38927 100644
--- a/arch/mips/include/asm/sgi/ip22.h
+++ b/arch/mips/include/asm/sgi/ip22.h
@@ -79,5 +79,6 @@ extern unsigned short ip22_nvram_read(int reg);
extern void ip22_be_interrupt(int irq);
extern void ip22_be_init(void) __init;
extern void indy_8254timer_irq(void);
+extern int ip22_eisa_init(void);
#endif
diff --git a/arch/mips/sgi-ip22/ip22-int.c b/arch/mips/sgi-ip22/ip22-int.c
index 11f8adc98cb5..89a3e8e8f0fd 100644
--- a/arch/mips/sgi-ip22/ip22-int.c
+++ b/arch/mips/sgi-ip22/ip22-int.c
@@ -30,8 +30,6 @@ static char lc1msk_to_irqnr[256];
static char lc2msk_to_irqnr[256];
static char lc3msk_to_irqnr[256];
-extern int ip22_eisa_init(void);
-
static void enable_local0_irq(struct irq_data *d)
{
/* don't allow mappable interrupt to be enabled from setup_irq,
--
2.47.3