Skip to content

Commit 2926da2

Browse files
committed
m68k: sun3/3x: Include <asm/config.h> for config_sun3*()
When building with W=1: arch/m68k/sun3/config.c:123:13: warning: no previous prototype for ‘config_sun3’ [-Wmissing-prototypes] 126 | void __init config_sun3(void) | ^~~~~~~~~~~ arch/m68k/sun3x/config.c:42:13: warning: no previous prototype for ‘config_sun3x’ [-Wmissing-prototypes] 42 | void __init config_sun3x(void) | ^~~~~~~~~~~~ Fix this by including <asm/config.h> Fixes: 91d7b75 ("m68k: Add asm/config.h") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/b9178e864d6c5e06c177d53bc4cce6d689f94d78.1694613528.git.geert@linux-m68k.org
1 parent bbe6980 commit 2926da2

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

arch/m68k/sun3/config.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <asm/irq.h>
3333
#include <asm/sections.h>
3434
#include <asm/sun3ints.h>
35+
#include <asm/config.h>
3536

3637
char sun3_reserved_pmeg[SUN3_PMEGS_NUM];
3738

arch/m68k/sun3x/config.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <asm/sun3ints.h>
2020
#include <asm/setup.h>
2121
#include <asm/oplib.h>
22+
#include <asm/config.h>
2223

2324
#include "time.h"
2425

0 commit comments

Comments
 (0)