mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
spl_nor: fix warning when compiled for 64bit target
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>
This commit is contained in:
committed by
Tom Rini
parent
3eb80d10c7
commit
70e6428d8c
@@ -59,7 +59,7 @@ int spl_nor_load_image(void)
|
|||||||
spl_parse_image_header(
|
spl_parse_image_header(
|
||||||
(const struct image_header *)CONFIG_SYS_UBOOT_BASE);
|
(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)),
|
(void *)(CONFIG_SYS_UBOOT_BASE + sizeof(struct image_header)),
|
||||||
spl_image.size);
|
spl_image.size);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user