diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-09-13 16:07:52 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-10-06 10:03:01 +0200 |
commit | e34b4acdf6488fbcdf890e72ecf925650c944503 (patch) | |
tree | 8058210ccdd6cf841cb1d94f97ee07ac80bb5ca2 /arch/m68k/kernel | |
parent | m68k: kernel: Add missing asmlinkage to do_notify_resume() (diff) | |
download | linux-e34b4acdf6488fbcdf890e72ecf925650c944503.tar.xz linux-e34b4acdf6488fbcdf890e72ecf925650c944503.zip |
m68k: kernel: Include <linux/cpu.h> for trap_init()
When building with W=1:
arch/m68k/kernel/vectors.c:74:13: warning: no previous prototype for ‘trap_init’ [-Wmissing-prototypes]
74 | void __init trap_init (void)
| ^~~~~~~~~
Fix this by including <linux/cpu.h>.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/42e7055fab50deda1f7cd648982e90b7ab28fdc3.1694613528.git.geert@linux-m68k.org
Diffstat (limited to 'arch/m68k/kernel')
-rw-r--r-- | arch/m68k/kernel/vectors.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/m68k/kernel/vectors.c b/arch/m68k/kernel/vectors.c index 322c977bb9ec..68762fc1dc97 100644 --- a/arch/m68k/kernel/vectors.c +++ b/arch/m68k/kernel/vectors.c @@ -17,6 +17,7 @@ /* * Sets up all exception vectors */ +#include <linux/cpu.h> #include <linux/sched.h> #include <linux/kernel.h> #include <linux/linkage.h> |