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: https://git.kernel.dk/?a=commitdiff_plain;h=004570c3796bfe454a9cdfb9ab5d3ea48371fe48;p=linux-block.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 9807ad164015..e4c435509983 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 */