]> git.itanic.dy.fi Git - linux-stable/commit
hexagon: irq: add prototype for arch_do_IRQ()
authorNathan Chancellor <nathan@kernel.org>
Thu, 30 Nov 2023 22:58:30 +0000 (15:58 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 11 Dec 2023 01:21:37 +0000 (17:21 -0800)
commit2212acda71d93887418146f36d5dd90fb13a2610
tree5677a2aa37bb715875193756bcde9b5439d794e9
parentd9f85d8be96900f659167a637686257e7176ce0e
hexagon: irq: add prototype for arch_do_IRQ()

Clang warns:

  arch/hexagon/kernel/vm_events.c:83:6: warning: no previous prototype for function 'arch_do_IRQ' [-Wmissing-prototypes]
     83 | void arch_do_IRQ(struct pt_regs *regs)
        |      ^
  arch/hexagon/kernel/vm_events.c:83:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     83 | void arch_do_IRQ(struct pt_regs *regs)
        | ^
        | static

This function is only called from assembly but the irq header is a
reasonable place to put a prototype to silence the warning.

Link: https://lkml.kernel.org/r/20231130-hexagon-missing-prototypes-v1-17-5c34714afe9e@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Brian Cain <bcain@quicinc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/hexagon/include/asm/irq.h