diff options
author | Nanyong Sun | 2021-03-05 19:33:25 +0800 |
---|---|---|
committer | Palmer Dabbelt | 2021-03-09 20:46:00 -0800 |
commit | 004570c3796bfe454a9cdfb9ab5d3ea48371fe48 (patch) | |
tree | eab986c408a4cd478d9202a19840af0df85dc393 | |
parent | 030f1dfa855054db5d845eca7f04c8cfda1c9f51 (diff) |
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>
-rw-r--r-- | arch/riscv/include/asm/irq.h | 2 |
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 */ |