[U-Boot] [PATCH] fastboot: mmc: fix pointer size warning in 64bit system

Simon Glass sjg at chromium.org
Sun Aug 13 15:35:26 UTC 2017


On 7 August 2017 at 02:14, Kever Yang <kever.yang at rock-chips.com> wrote:
> To fix warning in ARM64:
> common/fb_mmc.c: In function ‘fb_mmc_update_zimage’:
> common/fb_mmc.c:216:13: warning: cast from pointer to integer of
> different size [-Wpointer-to-int-cast]
>   hdr_addr = (u32)download_buffer + ALIGN(download_bytes, PAGE_SIZE);
>              ^
> common/fb_mmc.c:217:8: warning: cast to pointer from integer of
> different size [-Wint-to-pointer-cast]
>   hdr = (struct andr_img_hdr *)hdr_addr;
>
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> ---
>
>  common/fb_mmc.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list