Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

m68k: kernel: Make bad_super_trap() static

When building with W=1:

arch/m68k/kernel/traps.c:968:6: warning: no previous prototype for ‘bad_super_trap’ [-Wmissing-prototypes]
968 | void bad_super_trap (struct frame *fp)
| ^~~~~~~~~~~~~~

Fix this by making bad_super_trap() static.
There was never a user outside arch/m68k/kernel/traps.c.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/1e0b67a355d7e1bcb40811eced41d3080e8f4d20.1694613528.git.geert@linux-m68k.org

+1 -1
+1 -1
arch/m68k/kernel/traps.c
··· 965 965 * real 68k parts, but it won't hurt either. 966 966 */ 967 967 968 - void bad_super_trap (struct frame *fp) 968 + static void bad_super_trap(struct frame *fp) 969 969 { 970 970 int vector = (fp->ptregs.vector >> 2) & 0xff; 971 971