[PATCH V2 2/2] common: splash_source: Fix type casting errors

Tom Rini trini at konsulko.com
Sat Jul 22 01:34:31 CEST 2023


On Wed, Jun 21, 2023 at 04:29:53PM +0530, Nikhil M Jain wrote:

> During compilation splash_source puts out below warning for type
> conversion in splash_load_fit for bmp_load_addr and fit_header.
> Change their type to uintptr_t to fix the warnings.
> 
> common/splash_source.c: In function ‘splash_load_fit’:
> common/splash_source.c:366:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>   366 |         img_header = (struct legacy_img_hdr *)bmp_load_addr;
>       |                      ^
> common/splash_source.c:376:49: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>   376 |         res = splash_storage_read_raw(location, (u32)fit_header, fit_size);
>       |                                                 ^
> common/splash_source.c:401:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>   401 |                 memmove((void *)bmp_load_addr, internal_splash_data, internal_splash_size);
> 
> The above warnings are generated if CONFIG_FIT is enabled.
> 
> Signed-off-by: Nikhil M Jain <n-jain1 at ti.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230721/bc8748f0/attachment.sig>


More information about the U-Boot mailing list