* [PATCH v2] MIPS: irq: Add missing prototypes for init_IRQ()
@ 2020-09-28 10:12 Pujin Shi
0 siblings, 0 replies; only message in thread
From: Pujin Shi @ 2020-09-28 10:12 UTC (permalink / raw)
To: Marc Zyngier, Thomas Gleixner, Valentin Schneider, Stephen Boyd,
Lina Iyer, Maulik Shah, afzal mohammed, Gustavo A . R . Silva,
Masami Hiramatsu, Steven Rostedt, Andrew Morton, Kees Cook,
Dominik Brodowski, Arvind Sankar
Cc: linux-kernel, shipujin.t
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]
Signed-off-by: Pujin Shi <shipujin.t@gmail.com>
---
include/linux/irq.h | 2 ++
init/main.c | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 63b9d962ee67..4e8c462e00fc 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -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;
diff --git a/init/main.c b/init/main.c
index 1af84337cb18..63c7cd1f2131 100644
--- a/init/main.c
+++ b/init/main.c
@@ -110,7 +110,6 @@
static int kernel_init(void *);
-extern void init_IRQ(void);
extern void radix_tree_init(void);
/*
--
2.18.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-28 10:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-28 10:12 [PATCH v2] MIPS: irq: Add missing prototypes for init_IRQ() Pujin Shi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®