arch: include linux/cpu.h for trap_init() prototype
authorArnd Bergmann <arnd@arndb.de>
Mon, 6 Nov 2023 09:44:55 +0000 (10:44 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 23 Nov 2023 10:32:31 +0000 (11:32 +0100)
commitf717a8d1643d6515c7179cf32408f7d5a0e2e33b
tree7e99b0e9b83824d1e3ba806dbe3b4ccbba05f407
parent4d86896793dd6eeacdf32b85af1ef130349db4be
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>
arch/alpha/kernel/traps.c
arch/csky/include/asm/traps.h
arch/csky/kernel/traps.c
arch/m68k/coldfire/vectors.c
arch/m68k/coldfire/vectors.h [deleted file]
arch/microblaze/kernel/traps.c
arch/sparc/kernel/traps_32.c
arch/sparc/kernel/traps_64.c
arch/x86/include/asm/traps.h
arch/x86/kernel/traps.c