From: Nanyong Sun Date: Fri, 5 Mar 2021 11:33:25 +0000 (+0800) Subject: riscv: irq: Fix no prototype warning X-Git-Tag: v5.12-rc4~11^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=004570c3796bfe454a9cdfb9ab5d3ea48371fe48;p=thirdparty%2Fkernel%2Flinux.git riscv: irq: Fix no prototype warning Fix the following W=1 kernel compilation warning: arch/riscv/kernel/irq.c:19:13: warning: no previous prototype for ‘init_IRQ’ [-Wmissing-prototypes] 19 | void __init init_IRQ(void) | ^~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Nanyong Sun Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/include/asm/irq.h b/arch/riscv/include/asm/irq.h index 9807ad164015e..e4c435509983e 100644 --- a/arch/riscv/include/asm/irq.h +++ b/arch/riscv/include/asm/irq.h @@ -12,4 +12,6 @@ #include +extern void __init init_IRQ(void); + #endif /* _ASM_RISCV_IRQ_H */