summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-06-10 02:52:22 -0700
committerAnatolij Gustschin <agust@denx.de>2020-06-28 01:03:09 +0200
commit70b06d95426c016ce302b408f6d2ba9bd3bbda02 (patch)
tree6e4ccd8474dd7c71c135ee736e8a820adf11f555
parent8cee2006caec73e6a7b1d32e63d55efc724b07c7 (diff)
splash: Fix build warning on 64 bits CPU
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
-rw-r--r--common/splash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/splash.c b/common/splash.c
index e7d847726d..2b9313e03f 100644
--- a/common/splash.c
+++ b/common/splash.c
@@ -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)