Skip to contentSkip to conversation

MIPS: irq: Add missing prototypes for init_IRQ()

PATCH New Pujin Shi 1 participant 1 message Sep 28, 2020 IRQ

lore
Share & tools
lore

Pujin Shi

author
#0 lore raw

PATCH v2 1/1 MIPS: irq: Add missing prototypes for init_IRQ()

init_IRQ() have no prototype, add one in linux/irq.h

Fix the following warnings (treated as error in W=1):
arch/mips/kernel/irq.c:52:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes]

---
 include/linux/irq.h | 2 ++
 init/main.c         | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)
include/linux/irq.h +2 -0
index 63b9d962ee67..4e8c462e00fc 100644
@@ -585,6 +585,8 @@ enum {
 # define ARCH_IRQ_INIT_FLAGS	0
 #endif
 
+extern void init_IRQ(void);
+
 #define IRQ_DEFAULT_INIT_FLAGS	ARCH_IRQ_INIT_FLAGS
 
 struct irqaction;
init/main.c +0 -1
index 1af84337cb18..63c7cd1f2131 100644
@@ -110,7 +110,6 @@
 
 static int kernel_init(void *);
 
-extern void init_IRQ(void);
 extern void radix_tree_init(void);
 
 /*
Signature · 1 line
2.18.1