Skip to content
Snippets Groups Projects
Commit 00d0d2ad authored by Daniel Schwierzeck's avatar Daniel Schwierzeck Committed by Tom Rini
Browse files

malloc: remove extern declarations of malloc_bin_reloc() in board.c files


Declare malloc_bin_reloc() in malloc.h and remove all extern declarations
in various board.c files to get rid of one checkpatch.pl warning.

Signed-off-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Andreas Bießmann <andreas.devel@gmail.com>
Cc: Jason Jin <Jason.jin@freescale.com>
Cc: Macpaul Lin <macpaul@andestech.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Acked-by: default avatarAndreas Bießmann <andreas.devel@gmail.com>
parent b3873d3f
Branches
Tags
No related merge requests found
...@@ -250,7 +250,6 @@ void board_init_f(ulong board_type) ...@@ -250,7 +250,6 @@ void board_init_f(ulong board_type)
void board_init_r(gd_t *new_gd, ulong dest_addr) void board_init_r(gd_t *new_gd, ulong dest_addr)
{ {
extern void malloc_bin_reloc (void);
#ifndef CONFIG_ENV_IS_NOWHERE #ifndef CONFIG_ENV_IS_NOWHERE
extern char * env_name_spec; extern char * env_name_spec;
#endif #endif
......
...@@ -389,7 +389,6 @@ void board_init_r (gd_t *id, ulong dest_addr) ...@@ -389,7 +389,6 @@ void board_init_r (gd_t *id, ulong dest_addr)
{ {
char *s; char *s;
bd_t *bd; bd_t *bd;
extern void malloc_bin_reloc (void);
#ifndef CONFIG_ENV_IS_NOWHERE #ifndef CONFIG_ENV_IS_NOWHERE
extern char * env_name_spec; extern char * env_name_spec;
......
...@@ -248,7 +248,6 @@ void board_init_r(gd_t *id, ulong dest_addr) ...@@ -248,7 +248,6 @@ void board_init_r(gd_t *id, ulong dest_addr)
#ifndef CONFIG_SYS_NO_FLASH #ifndef CONFIG_SYS_NO_FLASH
ulong size; ulong size;
#endif #endif
extern void malloc_bin_reloc(void);
#ifndef CONFIG_ENV_IS_NOWHERE #ifndef CONFIG_ENV_IS_NOWHERE
extern char *env_name_spec; extern char *env_name_spec;
#endif #endif
......
...@@ -306,8 +306,6 @@ void board_init_r(gd_t *id, ulong dest_addr) ...@@ -306,8 +306,6 @@ void board_init_r(gd_t *id, ulong dest_addr)
bd_t *bd; bd_t *bd;
ulong malloc_start; ulong malloc_start;
extern void malloc_bin_reloc(void);
gd = id; gd = id;
bd = gd->bd; bd = gd->bd;
......
...@@ -62,7 +62,6 @@ DECLARE_GLOBAL_DATA_PTR; ...@@ -62,7 +62,6 @@ DECLARE_GLOBAL_DATA_PTR;
*/ */
extern void timer_interrupt_init(void); extern void timer_interrupt_init(void);
extern void malloc_bin_reloc(void);
extern int do_ambapp_print(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]); extern int do_ambapp_print(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]);
extern int prom_init(void); extern int prom_init(void);
......
...@@ -937,6 +937,7 @@ extern ulong mem_malloc_end; ...@@ -937,6 +937,7 @@ extern ulong mem_malloc_end;
extern ulong mem_malloc_brk; extern ulong mem_malloc_brk;
void mem_malloc_init(ulong start, ulong size); void mem_malloc_init(ulong start, ulong size);
void malloc_bin_reloc(void);
#ifdef __cplusplus #ifdef __cplusplus
}; /* end of extern "C" */ }; /* end of extern "C" */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment