Skip to content

Commit dcec33c

Browse files
committed
m68k: mvme16x: Add and use "mvme16x.h"
When building with W=1: arch/m68k/mvme16x/config.c:208:6: warning: no previous prototype for ‘mvme16x_cons_write’ [-Wmissing-prototypes] 208 | void mvme16x_cons_write(struct console *co, const char *str, unsigned count) | ^~~~~~~~~~~~~~~~~~ Fix this by introducing a new header file "mvme16x.h" for holding the prototypes of functions implemented in arch/m68k/mvme16x/. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/6200cc3b26fad215c4524748af04692e38c5ecd2.1694613528.git.geert@linux-m68k.org
1 parent 0c2a527 commit dcec33c

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

arch/m68k/kernel/early_printk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#include <linux/string.h>
1313
#include <asm/setup.h>
1414

15-
extern void mvme16x_cons_write(struct console *co,
16-
const char *str, unsigned count);
15+
16+
#include "../mvme16x/mvme16x.h"
1717

1818
asmlinkage void __init debug_cons_nputs(const char *s, unsigned n);
1919

arch/m68k/mvme16x/config.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
#include <asm/mvme16xhw.h>
3939
#include <asm/config.h>
4040

41+
#include "mvme16x.h"
42+
4143
extern t_bdid mvme_bdid;
4244

4345
static MK48T08ptr_t volatile rtc = (MK48T08ptr_t)MVME_RTC_BASE;

arch/m68k/mvme16x/mvme16x.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
3+
struct console;
4+
5+
/* config.c */
6+
void mvme16x_cons_write(struct console *co, const char *str, unsigned count);

0 commit comments

Comments
 (0)