diff mbox

[U-Boot,1/2] spl: Fix compile warning for arm64

Message ID 1438236432-32766-1-git-send-email-Qianyu.Gong@freescale.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Gong Qianyu July 30, 2015, 6:07 a.m. UTC
Make the cast explicit for "warning: cast to pointer from integer of different size".

Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>

Comments

Tom Rini Aug. 13, 2015, 1:21 p.m. UTC | #1
On Thu, Jul 30, 2015 at 02:07:12PM +0800, Gong Qianyu wrote:

> Make the cast explicit for "warning: cast to pointer from integer of different size".
> 
> Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>
> 
> diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
> index 494f683..ce58c58 100644

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 494f683..ce58c58 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);