[PATCH 2/9] riscv: irq: Fix no prototype warning

From: Nanyong Sun
Date: Fri Mar 05 2021 - 06:03:56 EST


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 <hulkci@xxxxxxxxxx>
Signed-off-by: Nanyong Sun <sunnanyong@xxxxxxxxxx>
---
arch/riscv/include/asm/irq.h | 2 ++
1 file changed, 2 insertions(+)

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 <asm-generic/irq.h>

+extern void __init init_IRQ(void);
+
#endif /* _ASM_RISCV_IRQ_H */
--
2.25.1