From: Gong Qianyu Date: Thu, 30 Jul 2015 06:07:12 +0000 (+0800) Subject: spl: Fix compile warning for arm64 X-Git-Tag: v2015.10-rc2~91 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7ef4c45c6e78f3775894053e65e93bdac1e77e63;p=u-boot spl: Fix compile warning for arm64 Make the cast explicit for "warning: cast to pointer from integer of different size". Signed-off-by: Gong Qianyu --- diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 494f683b0a..ce58c5824f 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -44,7 +44,7 @@ static int mmc_load_image_raw_sector(struct mmc *mmc, unsigned long sector) /* Read the header too to avoid extra memcpy */ count = mmc->block_dev.block_read(0, sector, image_size_sectors, - (void *)spl_image.load_addr); + (void *)(ulong)spl_image.load_addr); debug("read %x sectors to %x\n", image_size_sectors, spl_image.load_addr);