diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-15 08:57:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-15 08:57:17 +0200 |
commit | 4e70eaca3758e98ceaed0daca036074d5fee3921 (patch) | |
tree | 2a346f2bec7d06882d5174b7b4bf9cacfa30b9e8 /arch | |
parent | d0d43ccdbc729db0378414abd11d5ae9777705f3 (diff) | |
download | barebox-4e70eaca3758e98ceaed0daca036074d5fee3921.tar.gz barebox-4e70eaca3758e98ceaed0daca036074d5fee3921.tar.xz |
powerpc: Add prototypes for functions called from assembly
Some functions are called from assembly only. There's no prototype
for them so this leads to -Wmissing-prototypes warnings. Add a prototype
right aboce the functions to avoid these warnings.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/boards/pcm030/pcm030.c | 3 | ||||
-rw-r--r-- | arch/powerpc/lib/board.c | 3 | ||||
-rw-r--r-- | arch/powerpc/mach-mpc85xx/cpu.c | 3 | ||||
-rw-r--r-- | arch/powerpc/mach-mpc85xx/cpu_init.c | 3 |
4 files changed, 12 insertions, 0 deletions
diff --git a/arch/powerpc/boards/pcm030/pcm030.c b/arch/powerpc/boards/pcm030/pcm030.c index 330d29868e..c603643d58 100644 --- a/arch/powerpc/boards/pcm030/pcm030.c +++ b/arch/powerpc/boards/pcm030/pcm030.c @@ -143,6 +143,9 @@ static void sdram_start (int hi_addr) __asm__ volatile ("sync"); } +/* Called from assembly */ +void initdram(int board_type); + void initdram (int board_type) { ulong dramsize = 0; diff --git a/arch/powerpc/lib/board.c b/arch/powerpc/lib/board.c index 9031b37ada..a6111606b6 100644 --- a/arch/powerpc/lib/board.c +++ b/arch/powerpc/lib/board.c @@ -33,6 +33,9 @@ ************************************************************************ */ +/* Called from assembly */ +void board_init_r (ulong end_of_ram); + void board_init_r (ulong end_of_ram) { unsigned long malloc_end; diff --git a/arch/powerpc/mach-mpc85xx/cpu.c b/arch/powerpc/mach-mpc85xx/cpu.c index 1d5a69c999..a5241b82a7 100644 --- a/arch/powerpc/mach-mpc85xx/cpu.c +++ b/arch/powerpc/mach-mpc85xx/cpu.c @@ -49,6 +49,9 @@ static int restart_register_feature(void) } coredevice_initcall(restart_register_feature); +/* Called from assembly */ +long int initdram(int board_type); + long int initdram(int board_type) { phys_size_t dram_size = 0; diff --git a/arch/powerpc/mach-mpc85xx/cpu_init.c b/arch/powerpc/mach-mpc85xx/cpu_init.c index b9eadfadfd..3259945fda 100644 --- a/arch/powerpc/mach-mpc85xx/cpu_init.c +++ b/arch/powerpc/mach-mpc85xx/cpu_init.c @@ -184,6 +184,9 @@ static void fsl_erratum_p1010_a003549(void) static void fsl_erratum_p1010_a003549(void) {} #endif +/* Called from assembly */ +void cpu_init_early_f(void); + void cpu_init_early_f(void) { u32 mas0, mas1, mas2, mas3, mas7; |