summaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-11-06 10:44:55 +0100
committerArnd Bergmann <arnd@arndb.de>2023-11-23 11:32:31 +0100
commitf717a8d1643d6515c7179cf32408f7d5a0e2e33b (patch)
tree7e99b0e9b83824d1e3ba806dbe3b4ccbba05f407 /arch/alpha
parentarch: fix asm-offsets.c building with -Wmissing-prototypes (diff)
downloadlinux-f717a8d1643d6515c7179cf32408f7d5a0e2e33b.tar.xz
linux-f717a8d1643d6515c7179cf32408f7d5a0e2e33b.zip
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/alpha')
-rw-r--r--arch/alpha/kernel/traps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/alpha/kernel/traps.c b/arch/alpha/kernel/traps.c
index d9a67b370e04..7fc72aeb7398 100644
--- a/arch/alpha/kernel/traps.c
+++ b/arch/alpha/kernel/traps.c
@@ -9,6 +9,7 @@
* This file initializes the trap entry points
*/
+#include <linux/cpu.h>
#include <linux/jiffies.h>
#include <linux/mm.h>
#include <linux/sched/signal.h>