diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2023-09-20 07:21:31 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-09-20 14:03:20 +0200 |
commit | 1c4087e97eb53b45709d12d2c96f03e26bcaee12 (patch) | |
tree | 8bb89ad2c710c64356649c01276287bae3b2d9dc /arch | |
parent | xtensa: stacktrace: include <asm/ftrace.h> for prototype (diff) | |
download | linux-1c4087e97eb53b45709d12d2c96f03e26bcaee12.tar.xz linux-1c4087e97eb53b45709d12d2c96f03e26bcaee12.zip |
xtensa: traps: add <linux/cpu.h> for function prototype
Use <linux/cpu.h> to provide the prototype for trap_init(), to prevent
a build warning:
arch/xtensa/kernel/traps.c:484:13: warning: no previous prototype for 'trap_init' [-Wmissing-prototypes]
484 | void __init trap_init(void)
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Message-Id: <20230920052139.10570-9-rdunlap@infradead.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/xtensa/kernel/traps.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c index 427c125a137a..38092d21acf8 100644 --- a/arch/xtensa/kernel/traps.c +++ b/arch/xtensa/kernel/traps.c @@ -23,6 +23,7 @@ * for more details. */ +#include <linux/cpu.h> #include <linux/kernel.h> #include <linux/sched/signal.h> #include <linux/sched/debug.h> |