summaryrefslogtreecommitdiffstats
path: root/arch/hexagon
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2023-11-30 23:58:30 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-11 02:21:37 +0100
commit2212acda71d93887418146f36d5dd90fb13a2610 (patch)
tree5677a2aa37bb715875193756bcde9b5439d794e9 /arch/hexagon
parenthexagon: vm_events: remove unused dummy_handler() (diff)
downloadlinux-2212acda71d93887418146f36d5dd90fb13a2610.tar.xz
linux-2212acda71d93887418146f36d5dd90fb13a2610.zip
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>
Diffstat (limited to 'arch/hexagon')
-rw-r--r--arch/hexagon/include/asm/irq.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/hexagon/include/asm/irq.h b/arch/hexagon/include/asm/irq.h
index 1f7f1292f701..a60d26754caa 100644
--- a/arch/hexagon/include/asm/irq.h
+++ b/arch/hexagon/include/asm/irq.h
@@ -20,4 +20,7 @@
#include <asm-generic/irq.h>
+struct pt_regs;
+void arch_do_IRQ(struct pt_regs *);
+
#endif