Skip to content

Commit

Permalink
riscv: irq: Fix no prototype warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Nanyong Sun <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
  • Loading branch information
sunnanyong authored and palmer-dabbelt committed Mar 10, 2021
1 parent 030f1df commit 004570c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/riscv/include/asm/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@

#include <asm-generic/irq.h>

extern void __init init_IRQ(void);

#endif /* _ASM_RISCV_IRQ_H */

0 comments on commit 004570c

Please sign in to comment.