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>
This commit is contained in:
Greg Ungerer
2023-09-12 00:05:04 +10:00
committed by Greg Ungerer
parent 7bc3db03e3
commit b6880019ff
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -18,6 +18,8 @@
#include <asm/mcfsim.h>
#include <asm/mcfwdebug.h>
#include "vectors.h"
/***************************************************************************/
#ifdef TRAP_DBG_INTERRUPT
+3
View File
@@ -0,0 +1,3 @@
/* SPDX-License-Identifier: GPL-2.0-only */
void trap_init(void);