mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 20:52:22 -04:00
lmb: fix "implicit declaration of function 'lmb_free'" warning
Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
322ef5e28d
commit
730f298485
@ -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,
|
extern phys_addr_t __lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align,
|
||||||
phys_addr_t max_addr);
|
phys_addr_t max_addr);
|
||||||
extern int lmb_is_reserved(struct lmb *lmb, phys_addr_t 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);
|
extern void lmb_dump_all(struct lmb *lmb);
|
||||||
|
|
||||||
|
@ -212,7 +212,7 @@ do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Delete the old LMB reservation */
|
/* 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 */
|
/* Calculate the actual size of the fdt */
|
||||||
actualsize = fdt_off_dt_strings(of_flat_tree) +
|
actualsize = fdt_off_dt_strings(of_flat_tree) +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user