Skip to content

Commit 1c4087e

Browse files
rddunlapjcmvbkbc
authored andcommitted
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>
1 parent 1b6ceeb commit 1c4087e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/xtensa/kernel/traps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* for more details.
2424
*/
2525

26+
#include <linux/cpu.h>
2627
#include <linux/kernel.h>
2728
#include <linux/sched/signal.h>
2829
#include <linux/sched/debug.h>

0 commit comments

Comments
 (0)