summaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@kernel.org>2023-09-11 16:05:04 +0200
committerGreg Ungerer <gerg@linux-m68k.org>2023-10-23 00:22:22 +0200
commitb6880019ff3ed72b0813b6bcb5c23afdf8b8e75c (patch)
treed4b046bdb892f54f95d3d0a67440e0a5f7632e59 /arch/m68k
parentm68knommu: fix compilation for ColdFire/Cleopatra boards (diff)
downloadlinux-b6880019ff3ed72b0813b6bcb5c23afdf8b8e75c.tar.xz
linux-b6880019ff3ed72b0813b6bcb5c23afdf8b8e75c.zip
m68k: coldfire: add and use "vectors.h"
When building with W=1: arch/m68k/coldfire/vectors.c:43:13: warning: no previous prototype for ‘trap_init’ [-Wmissing-prototypes] void __init trap_init(void) ^~~~~~~~~ Fix this by introducing a new header file "vectors.h" for holding the prototypes of functions implemented in arch/m68k/coldfire/vectors.c. Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/coldfire/vectors.c2
-rw-r--r--arch/m68k/coldfire/vectors.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/m68k/coldfire/vectors.c b/arch/m68k/coldfire/vectors.c
index 3bf0d69eec9e..c26c255b530d 100644
--- a/arch/m68k/coldfire/vectors.c
+++ b/arch/m68k/coldfire/vectors.c
@@ -18,6 +18,8 @@
#include <asm/mcfsim.h>
#include <asm/mcfwdebug.h>
+#include "vectors.h"
+
/***************************************************************************/
#ifdef TRAP_DBG_INTERRUPT
diff --git a/arch/m68k/coldfire/vectors.h b/arch/m68k/coldfire/vectors.h
new file mode 100644
index 000000000000..0b01450a4353
--- /dev/null
+++ b/arch/m68k/coldfire/vectors.h
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+void trap_init(void);