]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
lmb: fix "implicit declaration of function 'lmb_free'" warning
authorWolfgang Denk <wd@denx.de>
Thu, 3 Jul 2008 20:04:17 +0000 (22:04 +0200)
committerWolfgang Denk <wd@denx.de>
Thu, 3 Jul 2008 20:04:17 +0000 (22:04 +0200)
Signed-off-by: Wolfgang Denk <wd@denx.de>
include/lmb.h
lib_ppc/bootm.c

index 03d76678b8dec1baa62d5947d8dd261de31b3499..02830756392aeb7f6998e5afee6dc12eeaa597da 100644 (file)
@@ -43,6 +43,7 @@ extern phys_addr_t lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align
 extern phys_addr_t __lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align,
                              phys_addr_t max_addr);
 extern int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr);
+extern long lmb_free(struct lmb *lmb, u64 base, u64 size);
 
 extern void lmb_dump_all(struct lmb *lmb);
 
index 9db1c2e3bfab091f24ef4816b2aa3445d526be42..3c1c18b46c914b91ea8644c5a9fc637b6d44ebd7 100644 (file)
@@ -212,7 +212,7 @@ do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
                }
 
                /* Delete the old LMB reservation */
-               lmb_free(lmb, of_flat_tree, fdt_totalsize(of_flat_tree));
+               lmb_free(lmb, (uint64_t)of_flat_tree, fdt_totalsize(of_flat_tree));
 
                /* Calculate the actual size of the fdt */
                actualsize = fdt_off_dt_strings(of_flat_tree) +