From: Pujin Shi <shipujin.t@gmail.com>
To: Marc Zyngier <maz@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Valentin Schneider <valentin.schneider@arm.com>,
Stephen Boyd <swboyd@chromium.org>,
Lina Iyer <ilina@codeaurora.org>,
Maulik Shah <mkshah@codeaurora.org>,
afzal mohammed <afzal.mohd.ma@gmail.com>,
"Gustavo A . R . Silva" <gustavo@embeddedor.com>,
Masami Hiramatsu <mhiramat@kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
Andrew Morton <akpm@linux-foundation.org>,
Kees Cook <keescook@chromium.org>,
Dominik Brodowski <linux@dominikbrodowski.net>,
Arvind Sankar <nivedita@alum.mit.edu>
Cc: linux-kernel@vger.kernel.org, shipujin.t@gmail.com
Subject: [PATCH v2] MIPS: irq: Add missing prototypes for init_IRQ()
Date: Mon, 28 Sep 2020 18:12:41 +0800 [thread overview]
Message-ID: <20200928101241.1240-1-shipujin.t@gmail.com> (raw)
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
reply other threads:[~2020-09-28 10:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200928101241.1240-1-shipujin.t@gmail.com \
--to=shipujin.t@gmail.com \
--cc=afzal.mohd.ma@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=gustavo@embeddedor.com \
--cc=ilina@codeaurora.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@dominikbrodowski.net \
--cc=maz@kernel.org \
--cc=mhiramat@kernel.org \
--cc=mkshah@codeaurora.org \
--cc=nivedita@alum.mit.edu \
--cc=rostedt@goodmis.org \
--cc=swboyd@chromium.org \
--cc=tglx@linutronix.de \
--cc=valentin.schneider@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®