Fix compiler warnings
authorKumar Gala <galak@kernel.crashing.org>
Mon, 7 Jul 2008 14:39:06 +0000 (09:39 -0500)
committerWolfgang Denk <wd@denx.de>
Wed, 9 Jul 2008 22:34:30 +0000 (00:34 +0200)
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>
lib_ppc/bootm.c

index 8d546756c1fb810a4db649651961185837c160db..b0d224e62925e91cb6123f7bd67d1983dfd2d3a9 100644 (file)
@@ -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) +