mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00: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:
parent
3eb80d10c7
commit
70e6428d8c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue