diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2024-01-17 15:49:44 -0800 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2024-01-22 10:32:36 +0100 |
commit | feab19143a1c8c5efdf1934dd0b1defb29bb5026 (patch) | |
tree | 97376296558be5b3cbdb8b1f7556d69e5f9b1557 /arch/mips/alchemy/common/setup.c | |
parent | MIPS: Cobalt: Fix missing prototypes (diff) | |
download | wireguard-linux-feab19143a1c8c5efdf1934dd0b1defb29bb5026.tar.xz wireguard-linux-feab19143a1c8c5efdf1934dd0b1defb29bb5026.zip |
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>
Diffstat (limited to 'arch/mips/alchemy/common/setup.c')
-rw-r--r-- | arch/mips/alchemy/common/setup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips/alchemy/common/setup.c b/arch/mips/alchemy/common/setup.c index 2388d68786f4..a7a6d31a7a41 100644 --- a/arch/mips/alchemy/common/setup.c +++ b/arch/mips/alchemy/common/setup.c @@ -30,13 +30,11 @@ #include <linux/mm.h> #include <linux/dma-map-ops.h> /* for dma_default_coherent */ +#include <asm/bootinfo.h> #include <asm/mipsregs.h> #include <au1000.h> -extern void __init board_setup(void); -extern void __init alchemy_set_lpj(void); - static bool alchemy_dma_coherent(void) { switch (alchemy_get_cputype()) { |