Commit 53cab6a2 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

m68k: kernel: Add and use "vectors.h"

When building with W=1:

    arch/m68k/kernel/vectors.c:52:13: warning: no previous prototype for ‘base_trap_init’ [-Wmissing-prototypes]
       52 | void __init base_trap_init(void)
	  |             ^~~~~~~~~~~~~~

Fix this by introducing a new header file "vectors.h" for holding the
prototypes of functions implemented in arch/m68k/kernel/vectors.c.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/bd0a2f65bc1681dc45e2b24951bd89f9ddbe2eef.1694613528.git.geert@linux-m68k.org
parent 90829e82
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#include <asm/fpu.h> #include <asm/fpu.h>
#include <asm/traps.h> #include <asm/traps.h>
#include "vectors.h"
/* assembler routines */ /* assembler routines */
asmlinkage void system_call(void); asmlinkage void system_call(void);
asmlinkage void buserr(void); asmlinkage void buserr(void);
......
/* SPDX-License-Identifier: GPL-2.0-only */
void base_trap_init(void);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment