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

Jaehoon Chung jh80.chung at samsung.com
Fri Aug 18 07:28:03 UTC 2017


On 08/14/2017 12:35 AM, Simon Glass wrote:
> 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>

Acked-by: Jaehoon Chung <jh80.chung at samsung.com>

> 
> 
> 



More information about the U-Boot mailing list