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

Sam Protsenko semen.protsenko at linaro.org
Fri Aug 18 09:50:41 UTC 2017


On 18 August 2017 at 10:28, Jaehoon Chung <jh80.chung at samsung.com> wrote:
> 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>
>

Guys,

I believe it was already fixed, only not merged yet. Please see [1,2].

[1] https://lists.denx.de/pipermail/u-boot/2017-June/295059.html
[2] https://patchwork.ozlabs.org/patch/792569/

>>
>>
>>
>


More information about the U-Boot mailing list