diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-09-13 17:08:25 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2023-10-06 11:03:03 +0300 |
commit | dcec33c1fc4ab63983d93ffb0d82b68fc5775b88 (patch) | |
tree | c26c38386fa136e819c1f0a81b0f2786f51f44ab /arch/m68k/kernel/early_printk.c | |
parent | 0c2a527e28ee8290a60a7105fc4c302922944bfe (diff) | |
download | linux-dcec33c1fc4ab63983d93ffb0d82b68fc5775b88.tar.xz |
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
Diffstat (limited to 'arch/m68k/kernel/early_printk.c')
-rw-r--r-- | arch/m68k/kernel/early_printk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/kernel/early_printk.c b/arch/m68k/kernel/early_printk.c index 7d3fe08a48eb..3cc944df04f6 100644 --- a/arch/m68k/kernel/early_printk.c +++ b/arch/m68k/kernel/early_printk.c @@ -12,8 +12,8 @@ #include <linux/string.h> #include <asm/setup.h> -extern void mvme16x_cons_write(struct console *co, - const char *str, unsigned count); + +#include "../mvme16x/mvme16x.h" asmlinkage void __init debug_cons_nputs(const char *s, unsigned n); |