Skip to content

Commit b688001

Browse files
Greg UngererGreg Ungerer
authored andcommitted
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>
1 parent 7bc3db0 commit b688001

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

arch/m68k/coldfire/vectors.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#include <asm/mcfsim.h>
1919
#include <asm/mcfwdebug.h>
2020

21+
#include "vectors.h"
22+
2123
/***************************************************************************/
2224

2325
#ifdef TRAP_DBG_INTERRUPT

arch/m68k/coldfire/vectors.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
3+
void trap_init(void);

0 commit comments

Comments
 (0)