提交 70e6428d 编写于 作者: M Masahiro Yamada 提交者: Tom Rini

spl_nor: fix warning when compiled for 64bit target

Fix "warning: cast to pointer from integer of different size".
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: NTom Rini <trini@konsulko.com>
上级 3eb80d10
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册