]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
malloc: remove extern declarations of malloc_bin_reloc() in board.c files
authorDaniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Sun, 3 Jun 2012 12:40:04 +0000 (12:40 +0000)
committerTom Rini <trini@ti.com>
Wed, 26 Sep 2012 18:08:32 +0000 (11:08 -0700)
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: Daniel 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: Andreas Bießmann <andreas.devel@gmail.com>
arch/avr32/lib/board.c
arch/m68k/lib/board.c
arch/mips/lib/board.c
arch/nds32/lib/board.c
arch/sparc/lib/board.c
include/malloc.h

index d7a64b48727aedaf5879ace43dd1faf9f3b759e0..9d3b76e15ae8504551eeb23a15f9ac84aa19e5f8 100644 (file)
@@ -250,7 +250,6 @@ void board_init_f(ulong board_type)
 
 void board_init_r(gd_t *new_gd, ulong dest_addr)
 {
-       extern void malloc_bin_reloc (void);
 #ifndef CONFIG_ENV_IS_NOWHERE
        extern char * env_name_spec;
 #endif
index 65a8595c2bd684eb0483e6740cf17807554122a6..2add630abb463c6531268b2c75f6d3700bb29a4f 100644 (file)
@@ -389,7 +389,6 @@ void board_init_r (gd_t *id, ulong dest_addr)
 {
        char *s;
        bd_t *bd;
-       extern void malloc_bin_reloc (void);
 
 #ifndef CONFIG_ENV_IS_NOWHERE
        extern char * env_name_spec;
index 62d47a8bf0bb7e79d3b558729bc485a4466b41e2..b14b33efcd0bf20317f01a27b58194662aaeba14 100644 (file)
@@ -248,7 +248,6 @@ void board_init_r(gd_t *id, ulong dest_addr)
 #ifndef CONFIG_SYS_NO_FLASH
        ulong size;
 #endif
-       extern void malloc_bin_reloc(void);
 #ifndef CONFIG_ENV_IS_NOWHERE
        extern char *env_name_spec;
 #endif
index 2164a505f6e7a9b4677290ba4931aba28af33ec4..17d3ee071f1f09fbd61b8036e7f3023eb66f4214 100644 (file)
@@ -306,8 +306,6 @@ void board_init_r(gd_t *id, ulong dest_addr)
        bd_t *bd;
        ulong malloc_start;
 
-       extern void malloc_bin_reloc(void);
-
        gd = id;
        bd = gd->bd;
 
index 6f33666265ea3ae6f1389a9e1d8343d3204bc76a..ff0e0f2fd04cce0b57a2f409c2cd76f91f4a9a63 100644 (file)
@@ -62,7 +62,6 @@ DECLARE_GLOBAL_DATA_PTR;
 */
 
 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 prom_init(void);
 
index 6295929ea38b4cbf9bcd8b488d0dbee2f3f5237f..84ecf79344f6f57bbd744b18eab9b07e85d5dde6 100644 (file)
@@ -937,6 +937,7 @@ extern ulong mem_malloc_end;
 extern ulong mem_malloc_brk;
 
 void mem_malloc_init(ulong start, ulong size);
+void malloc_bin_reloc(void);
 
 #ifdef __cplusplus
 };  /* end of extern "C" */