projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
030f1df
)
riscv: irq: Fix no prototype warning
author
Nanyong Sun
<sunnanyong@huawei.com>
Fri, 5 Mar 2021 11:33:25 +0000
(19:33 +0800)
committer
Palmer Dabbelt
<palmerdabbelt@google.com>
Wed, 10 Mar 2021 04:46:00 +0000
(20:46 -0800)
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>
arch/riscv/include/asm/irq.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/riscv/include/asm/irq.h
b/arch/riscv/include/asm/irq.h
index 9807ad164015e5a08d4d2e90e407f5fc78c87a7f..e4c435509983e544f73150ef4f6e7bd5a7267c85 100644
(file)
--- 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 */