summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-05-08 11:09:01 -0700
committerYe Li <ye.li@nxp.com>2020-05-11 03:22:40 -0700
commit41d277b5c1d3cfb3aeb116322ce79099b1306861 (patch)
tree394dd160b07b2a9b284002cf9cb16dc731d79081 /common
parentdc14c1e0904a1f02eac7f45ce26e2c6584fbfbe1 (diff)
MLK-23964-3 splash: Fix build warning on 64 bits CPU
Meet 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> (cherry picked from commit 037db06f9441b0e889c730f78874d3b120942ea9)
Diffstat (limited to 'common')
-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)