spl_nor: fix warning when compiled for 64bit target
PATCH 1/1 spl_nor: fix warning when compiled for 64bit target
Fix "warning: cast to pointer from integer of different size".
Signed-off-by Masahiro Yamada <[email protected]>
---
common/spl/spl_nor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/spl/spl_nor.c +1 -1
@@ -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);
Signature · 1 line
1.9.1
PATCH 1/1 spl_nor: fix warning when compiled for 64bit target
Quoted 3 lines · Masahiro Yamada
Fix "warning: cast to pointer from integer of different size".
Signed-off-by Masahiro Yamada <[email protected]>
Reviewed-by Tom Rini <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160229/b3d2fecd/attachment.sig>
Quoted 4 lines · Masahiro Yamada
Fix "warning: cast to pointer from integer of different size".
Signed-off-by Masahiro Yamada <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160316/bba058da/attachment.sig>