diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-09-13 17:08:00 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-10-06 11:03:01 +0300 |
commit | 53cab6a2b348fceffc6c20323ca84eff3bab53d3 (patch) | |
tree | ca952bf14456214c45a1907c386145355afb76a9 /arch/m68k/kernel/vectors.h | |
parent | 90829e82127d8d98abb1cdebeb7ef675d4e90521 (diff) | |
download | linux-53cab6a2b348fceffc6c20323ca84eff3bab53d3.tar.xz |
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: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/bd0a2f65bc1681dc45e2b24951bd89f9ddbe2eef.1694613528.git.geert@linux-m68k.org
Diffstat (limited to 'arch/m68k/kernel/vectors.h')
-rw-r--r-- | arch/m68k/kernel/vectors.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/m68k/kernel/vectors.h b/arch/m68k/kernel/vectors.h new file mode 100644 index 000000000000..897330737ec5 --- /dev/null +++ b/arch/m68k/kernel/vectors.h @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +void base_trap_init(void); |