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 <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Max Filippov <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 1b6ceeb commit 1c4087e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)