[U-Boot] [PATCH] spl_nor: fix warning when compiled for 64bit target
Masahiro Yamada
yamada.masahiro at socionext.com
Mon Feb 29 12:50:34 CET 2016
Fix "warning: cast to pointer from integer of different size".
Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---
common/spl/spl_nor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c
index e08afe2..d0bd0b0 100644
--- a/common/spl/spl_nor.c
+++ b/common/spl/spl_nor.c
@@ -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);
--
1.9.1
More information about the U-Boot
mailing list