diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-11-06 10:44:55 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2023-11-23 11:32:31 +0100 |
commit | f717a8d1643d6515c7179cf32408f7d5a0e2e33b (patch) | |
tree | 7e99b0e9b83824d1e3ba806dbe3b4ccbba05f407 /arch/x86/kernel/traps.c | |
parent | 4d86896793dd6eeacdf32b85af1ef130349db4be (diff) |
arch: include linux/cpu.h for trap_init() prototype
some architectures run into a -Wmissing-prototypes warning
for trap_init()
arch/microblaze/kernel/traps.c:21:6: warning: no previous prototype for 'trap_init' [-Wmissing-prototypes]
Include the right header to avoid this consistently, removing
the extra declarations on m68k and x86 that were added as local
workarounds already.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/x86/kernel/traps.c')
-rw-r--r-- | arch/x86/kernel/traps.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index c876f1d36a81..b0737a15c470 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -37,6 +37,7 @@ #include <linux/nmi.h> #include <linux/mm.h> #include <linux/smp.h> +#include <linux/cpu.h> #include <linux/io.h> #include <linux/hardirq.h> #include <linux/atomic.h> |