MIPS: irq: Add missing prototypes for init_IRQ()
PATCH 1/1 MIPS: irq: Add missing prototypes for init_IRQ()
init_IRQ() have no prototype, add one in 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 <[email protected]>
--- arch/mips/include/asm/irq.h | 1 + arch/mips/kernel/irq.c | 1 + 2 files changed, 2 insertions(+)
arch/mips/include/asm/irq.h +1 -0
@@ -21,6 +21,7 @@#define IRQ_STACK_START (IRQ_STACK_SIZE - 16)extern void *irq_stack[NR_CPUS ]; +void init_IRQ (void );/* * The highest address on the IRQ stack contains a dummy frame put down in
arch/mips/kernel/irq.c +1 -0
@@ -21,6 +21,7 @@#include <linux/kallsyms.h> #include <linux/kgdb.h> #include <linux/ftrace.h> +#include <asm/irq.h> #include <linux/atomic.h> #include <linux/uaccess.h>
Signature · 1 line
2.18.1
Thomas Bogendoerfer
maintainerQuoted 16 lines · Pujin Shi
init_IRQ()have no prototype, add one inirq.hFix 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 <[email protected]>--- arch/mips/include/asm/irq.h | 1 + arch/mips/kernel/irq.c | 1 + 2 files changed, 2 insertions(+)arch/mips/include/asm/irq.h +0
-0
arch/mips/include/asm/irq.h line 24
Quoted 4 lines
arch/mips/include/asm/irq.h +1
-0@@ -21,6 +21,7 @@#define IRQ_STACK_START (IRQ_STACK_SIZE - 16)extern void *irq_stack[NR_CPUS ]; +void init_IRQ (void );
putting it here hasn't any value. If you want to fix this properly, move the extern void init_IRQ(void) in init/main.c to a common header file and check that every arch to uses it.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]