splash: Fix build warning on 64 bits CPU
authorYe Li <ye.li@nxp.com>
Wed, 10 Jun 2020 09:52:22 +0000 (02:52 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sat, 27 Jun 2020 23:03:09 +0000 (01:03 +0200)
Get below warning on ARM64 platform, because the bmp_load_addr
is defined to u32.

common/splash.c: In function ‘splash_video_logo_load’:
common/splash.c:74:9: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
   74 |  memcpy((void *)bmp_load_addr, bmp_logo_bitmap,

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # bpi-m1+, bpi-m64
common/splash.c

index e7d8477..2b9313e 100644 (file)
@@ -59,7 +59,7 @@ static struct splash_location default_splash_locations[] = {
 static int splash_video_logo_load(void)
 {
        char *splashimage;
-       u32 bmp_load_addr;
+       ulong bmp_load_addr;
 
        splashimage = env_get("splashimage");
        if (!splashimage)