Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mips: spram: fix missing prototype warning for spram_config

arch/mips/kernel/spram.c:194:6: error: no previous prototype for 'spram_config' [-Werror=missing-prototypes]

Link: https://lkml.kernel.org/r/20231204115710.2247097-15-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@rothwell.id.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Arnd Bergmann and committed by
Andrew Morton
858c638c 7dc5b892

+2 -1
+1 -1
arch/mips/include/asm/spram.h
··· 3 3 #define _MIPS_SPRAM_H 4 4 5 5 #if defined(CONFIG_MIPS_SPRAM) 6 - extern __init void spram_config(void); 6 + extern void spram_config(void); 7 7 #else 8 8 static inline void spram_config(void) { } 9 9 #endif /* CONFIG_MIPS_SPRAM */
+1
arch/mips/kernel/spram.c
··· 12 12 #include <asm/mipsregs.h> 13 13 #include <asm/r4kcache.h> 14 14 #include <asm/hazards.h> 15 + #include <asm/spram.h> 15 16 16 17 /* 17 18 * These definitions are correct for the 24K/34K/74K SPRAM sample