Message ID | 20210118132009.2642893-1-siyanteng@loongson.cn (mailing list archive) |
---|---|
State | Accepted |
Commit | 01179ca040437d9db0232fc9eea69e6e195ae118 |
Headers | show |
Series | MIPS: IRQ: Add prototype for function init_IRQ | expand |
Reviewed-by: Huacai Chen <chenhuacai@kernel.org> On Mon, Jan 18, 2021 at 9:19 PM Yanteng Si <siyanteng@loongson.cn> wrote: > > This commit adds a prototype to fix error at W=1: > > arch/mips/kernel/irq.c:52:13: error: no previous prototype for > 'init_IRQ' [-Werror=missing-prototypes] > > Signed-off-by: Yanteng Si <siyanteng@loongson.cn> > --- > arch/mips/include/asm/irq.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/mips/include/asm/irq.h b/arch/mips/include/asm/irq.h > index c5d351786416..f021de661c3a 100644 > --- a/arch/mips/include/asm/irq.h > +++ b/arch/mips/include/asm/irq.h > @@ -20,6 +20,7 @@ > #define IRQ_STACK_SIZE THREAD_SIZE > #define IRQ_STACK_START (IRQ_STACK_SIZE - 16) > > +extern void __init init_IRQ(void); > extern void *irq_stack[NR_CPUS]; > > /* > -- > 2.27.0 >
On Mon, Jan 18, 2021 at 09:20:09PM +0800, Yanteng Si wrote: > This commit adds a prototype to fix error at W=1: > > arch/mips/kernel/irq.c:52:13: error: no previous prototype for > 'init_IRQ' [-Werror=missing-prototypes] > > Signed-off-by: Yanteng Si <siyanteng@loongson.cn> > --- > arch/mips/include/asm/irq.h | 1 + > 1 file changed, 1 insertion(+) applied to mips-next. Thomas.
diff --git a/arch/mips/include/asm/irq.h b/arch/mips/include/asm/irq.h index c5d351786416..f021de661c3a 100644 --- a/arch/mips/include/asm/irq.h +++ b/arch/mips/include/asm/irq.h @@ -20,6 +20,7 @@ #define IRQ_STACK_SIZE THREAD_SIZE #define IRQ_STACK_START (IRQ_STACK_SIZE - 16) +extern void __init init_IRQ(void); extern void *irq_stack[NR_CPUS]; /*
This commit adds a prototype to fix error at W=1: arch/mips/kernel/irq.c:52:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes] Signed-off-by: Yanteng Si <siyanteng@loongson.cn> --- arch/mips/include/asm/irq.h | 1 + 1 file changed, 1 insertion(+)