diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2023-09-20 07:21:26 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-09-20 14:03:18 +0200 |
commit | 4052a37aa84abac7d0f1a7f28378edc78c9d6dd3 (patch) | |
tree | 394a62aae62ce5ed0c1b2d2bca8e63a82efbdfa9 /arch/xtensa/kernel | |
parent | xtensa: fault: include <asm/traps.h> (diff) | |
download | linux-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.c | 1 |
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); |