diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-07-07 09:39:06 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-10 00:34:30 +0200 |
commit | da8693a91b8eef75ade8de50a1b2ce035bc5fb54 (patch) | |
tree | bd0541479fd8e1cdad957951b9e6b2c85cbc1c9f /lib_ppc | |
parent | 5bb12dbd7ae03189b6c13d8737b5a1b37c3df698 (diff) | |
download | u-boot-midas-da8693a91b8eef75ade8de50a1b2ce035bc5fb54.tar.gz u-boot-midas-da8693a91b8eef75ade8de50a1b2ce035bc5fb54.tar.bz2 u-boot-midas-da8693a91b8eef75ade8de50a1b2ce035bc5fb54.zip |
Fix compiler warnings
gcc-4.3.x generates the following:
bootm.c: In function 'do_bootm_linux':
bootm.c:208: warning: cast from pointer to integer of different size
bootm.c:215: warning: cast from pointer to integer of different size
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'lib_ppc')
-rw-r--r-- | lib_ppc/bootm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c index 8d546756c1..b0d224e629 100644 --- a/lib_ppc/bootm.c +++ b/lib_ppc/bootm.c @@ -205,14 +205,14 @@ do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[], for (j = 0; j < total; j++) { fdt_get_mem_rsv(of_flat_tree, j, &addr, &size); - if (addr == (uint64_t)of_flat_tree) { + if (addr == (uint64_t)(u32)of_flat_tree) { fdt_del_mem_rsv(of_flat_tree, j); break; } } /* Delete the old LMB reservation */ - lmb_free(lmb, (uint64_t)of_flat_tree, fdt_totalsize(of_flat_tree)); + lmb_free(lmb, (uint64_t)(u32)of_flat_tree, fdt_totalsize(of_flat_tree)); /* Calculate the actual size of the fdt */ actualsize = fdt_off_dt_strings(of_flat_tree) + |