[U-Boot-Users] [PATCH] lmb: fix "implicit declaration of function 'lmb_free'" warning

Wolfgang Denk wd at denx.de
Sun Jul 6 00:38:03 CEST 2008


Signed-off-by: Wolfgang Denk <wd at denx.de>
---
 include/lmb.h   |    1 +
 lib_ppc/bootm.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/lmb.h b/include/lmb.h
index 03d7667..0283075 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -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);
 
diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c
index 9db1c2e..3c1c18b 100644
--- a/lib_ppc/bootm.c
+++ b/lib_ppc/bootm.c
@@ -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) +
-- 
1.5.5.1





More information about the U-Boot mailing list