Skip to content

Commit feab191

Browse files
ffainellitsbogend
authored andcommitted
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>
1 parent 0dd20a4 commit feab191

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

arch/mips/alchemy/common/prom.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include <linux/string.h>
4141

4242
#include <asm/bootinfo.h>
43+
#include <prom.h>
4344

4445
int prom_argc;
4546
char **prom_argv;

arch/mips/alchemy/common/setup.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@
3030
#include <linux/mm.h>
3131
#include <linux/dma-map-ops.h> /* for dma_default_coherent */
3232

33+
#include <asm/bootinfo.h>
3334
#include <asm/mipsregs.h>
3435

3536
#include <au1000.h>
3637

37-
extern void __init board_setup(void);
38-
extern void __init alchemy_set_lpj(void);
39-
4038
static bool alchemy_dma_coherent(void)
4139
{
4240
switch (alchemy_get_cputype()) {

arch/mips/include/asm/mach-au1x00/au1000.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,9 @@
597597

598598
#include <asm/cpu.h>
599599

600+
void alchemy_set_lpj(void);
601+
void board_setup(void);
602+
600603
/* helpers to access the SYS_* registers */
601604
static inline unsigned long alchemy_rdsys(int regofs)
602605
{

0 commit comments

Comments
 (0)