summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2023-09-20 07:21:26 +0200
committerMax Filippov <jcmvbkbc@gmail.com>2023-09-20 14:03:18 +0200
commit4052a37aa84abac7d0f1a7f28378edc78c9d6dd3 (patch)
tree394a62aae62ce5ed0c1b2d2bca8e63a82efbdfa9 /arch/xtensa/kernel
parentxtensa: fault: include <asm/traps.h> (diff)
downloadlinux-4052a37aa84abac7d0f1a7f28378edc78c9d6dd3.tar.xz
linux-4052a37aa84abac7d0f1a7f28378edc78c9d6dd3.zip
xtensa: irq: include <asm/traps.h>
Use <asm/traps.h> to provide the function prototype for do_IRQ() to prevent a build warning: arch/xtensa/kernel/irq.c:34:17: warning: no previous prototype for 'do_IRQ' [-Wmissing-prototypes] 34 | asmlinkage void do_IRQ(int hwirq, struct pt_regs *regs) Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com> Message-Id: <20230920052139.10570-4-rdunlap@infradead.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel')
-rw-r--r--arch/xtensa/kernel/irq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/kernel/irq.c b/arch/xtensa/kernel/irq.c
index 42f106004400..b1e410f6b5ab 100644
--- a/arch/xtensa/kernel/irq.c
+++ b/arch/xtensa/kernel/irq.c
@@ -28,6 +28,7 @@
#include <asm/mxregs.h>
#include <linux/uaccess.h>
#include <asm/platform.h>
+#include <asm/traps.h>
DECLARE_PER_CPU(unsigned long, nmi_count);