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

MIPS: Alchemy: Fix missing prototypes

We have a number of missing prototypes warnings for board_setup(),
alchemy_set_lpj() and prom_init_cmdline(), prom_getenv() and
prom_get_ethernet_addr(). Fix those by providing definitions for the
first two functions in au1000.h which is included everywhere relevant,
and including prom.h for the last three.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Florian Fainelli and committed by
Thomas Bogendoerfer
feab1914 0dd20a48

+5 -3
+1
arch/mips/alchemy/common/prom.c
··· 40 40 #include <linux/string.h> 41 41 42 42 #include <asm/bootinfo.h> 43 + #include <prom.h> 43 44 44 45 int prom_argc; 45 46 char **prom_argv;
+1 -3
arch/mips/alchemy/common/setup.c
··· 30 30 #include <linux/mm.h> 31 31 #include <linux/dma-map-ops.h> /* for dma_default_coherent */ 32 32 33 + #include <asm/bootinfo.h> 33 34 #include <asm/mipsregs.h> 34 35 35 36 #include <au1000.h> 36 - 37 - extern void __init board_setup(void); 38 - extern void __init alchemy_set_lpj(void); 39 37 40 38 static bool alchemy_dma_coherent(void) 41 39 {
+3
arch/mips/include/asm/mach-au1x00/au1000.h
··· 597 597 598 598 #include <asm/cpu.h> 599 599 600 + void alchemy_set_lpj(void); 601 + void board_setup(void); 602 + 600 603 /* helpers to access the SYS_* registers */ 601 604 static inline unsigned long alchemy_rdsys(int regofs) 602 605 {