]> git.sur5r.net Git - u-boot/commitdiff
spl_nor: fix warning when compiled for 64bit target
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 29 Feb 2016 11:50:34 +0000 (20:50 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 16 Mar 2016 01:30:20 +0000 (21:30 -0400)
Fix "warning: cast to pointer from integer of different size".

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl_nor.c

index e08afe200beb623e16c36cd9937e88f1e6c8fe9c..d0bd0b05333ba3bcb993f9bd9908efb5c9a16dc0 100644 (file)
@@ -59,7 +59,7 @@ int spl_nor_load_image(void)
        spl_parse_image_header(
                        (const struct image_header *)CONFIG_SYS_UBOOT_BASE);
 
-       memcpy((void *)spl_image.load_addr,
+       memcpy((void *)(unsigned long)spl_image.load_addr,
               (void *)(CONFIG_SYS_UBOOT_BASE + sizeof(struct image_header)),
               spl_image.size);