From patchwork Wed Jun 10 09:52:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ye Li X-Patchwork-Id: 242039 List-Id: U-Boot discussion From: ye.li at nxp.com (Ye Li) Date: Wed, 10 Jun 2020 02:52:22 -0700 Subject: [PATCH] splash: Fix build warning on 64 bits CPU In-Reply-To: <1591782743-22846-1-git-send-email-ye.li@nxp.com> References: <1591782743-22846-1-git-send-email-ye.li@nxp.com> Message-ID: <1591782743-22846-2-git-send-email-ye.li@nxp.com> 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 Reviewed-by: Jagan Teki Tested-by: Jagan Teki # bpi-m1+, bpi-m64 --- common/splash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/splash.c b/common/splash.c index e7d8477..2b9313e 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)