aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorNanyong Sun <sunnanyong@huawei.com>2021-03-05 19:33:25 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-03-09 20:46:00 -0800
commit004570c3796bfe454a9cdfb9ab5d3ea48371fe48 (patch)
treeeab986c408a4cd478d9202a19840af0df85dc393 /arch/riscv
parent030f1dfa855054db5d845eca7f04c8cfda1c9f51 (diff)
downloadlinux-004570c3796bfe454a9cdfb9ab5d3ea48371fe48.tar.gz
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 <hulkci@huawei.com> Signed-off-by: Nanyong Sun <sunnanyong@huawei.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/include/asm/irq.h2
1 files changed, 2 insertions, 0 deletions
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 */