projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e86c953
)
spl: Fix compile warning for arm64
author
Gong Qianyu
<Qianyu.Gong@freescale.com>
Thu, 30 Jul 2015 06:07:12 +0000
(14:07 +0800)
committer
Tom Rini
<trini@konsulko.com>
Thu, 13 Aug 2015 00:47:56 +0000
(20:47 -0400)
Make the cast explicit for "warning: cast to pointer from integer of different size".
Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>
common/spl/spl_mmc.c
patch
|
blob
|
history
diff --git
a/common/spl/spl_mmc.c
b/common/spl/spl_mmc.c
index 494f683b0aaaf64f79cbb393c35d35ac7330f4ae..ce58c5824f6d80add3705a588134d876da7bc474 100644
(file)
--- 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);