lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200928101241.1240-1-shipujin.t@gmail.com>
Date:   Mon, 28 Sep 2020 18:12:41 +0800
From:   Pujin Shi <shipujin.t@...il.com>
To:     Marc Zyngier <maz@...nel.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Valentin Schneider <valentin.schneider@....com>,
        Stephen Boyd <swboyd@...omium.org>,
        Lina Iyer <ilina@...eaurora.org>,
        Maulik Shah <mkshah@...eaurora.org>,
        afzal mohammed <afzal.mohd.ma@...il.com>,
        "Gustavo A . R . Silva" <gustavo@...eddedor.com>,
        Masami Hiramatsu <mhiramat@...nel.org>,
        Steven Rostedt <rostedt@...dmis.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Kees Cook <keescook@...omium.org>,
        Dominik Brodowski <linux@...inikbrodowski.net>,
        Arvind Sankar <nivedita@...m.mit.edu>
Cc:     linux-kernel@...r.kernel.org, shipujin.t@...il.com
Subject: [PATCH v2] 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]

Signed-off-by: Pujin Shi <shipujin.t@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ