diff options
author | Tom Rini <trini@konsulko.com> | 2017-06-10 09:15:37 -0400 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2017-08-21 11:31:10 +0200 |
commit | 2341c80cd261291aff2c58b70bacc053ecca9d1d (patch) | |
tree | 021079f117f8cc2fc5c93f672f4da707ce7ced19 /common | |
parent | 7715dea48b5d17f6394d1a02c60a84278df71391 (diff) | |
download | u-boot-2341c80cd261291aff2c58b70bacc053ecca9d1d.tar.gz u-boot-2341c80cd261291aff2c58b70bacc053ecca9d1d.tar.bz2 u-boot-2341c80cd261291aff2c58b70bacc053ecca9d1d.zip |
common/fb_mmc.c: Fix warnings about casts
When building the flash zImage code on aarch64 we see warnings about
pointer size casts. Use uintptr_t instead to correct these.
Cc: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-By: Sam Protsenko <semen.protsenko@linaro.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/fb_mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/fb_mmc.c b/common/fb_mmc.c index 5065ad5f73..2a8ba15f31 100644 --- a/common/fb_mmc.c +++ b/common/fb_mmc.c @@ -162,7 +162,7 @@ static int fb_mmc_update_zimage(struct blk_desc *dev_desc, void *download_buffer, unsigned int download_bytes) { - u32 hdr_addr; /* boot image header address */ + uintptr_t hdr_addr; /* boot image header address */ struct andr_img_hdr *hdr; /* boot image header */ lbaint_t hdr_sectors; /* boot image header sectors */ u8 *ramdisk_buffer; @@ -185,7 +185,7 @@ static int fb_mmc_update_zimage(struct blk_desc *dev_desc, } /* Put boot image header in fastboot buffer after downloaded zImage */ - hdr_addr = (u32)download_buffer + ALIGN(download_bytes, PAGE_SIZE); + hdr_addr = (uintptr_t)download_buffer + ALIGN(download_bytes, PAGE_SIZE); hdr = (struct andr_img_hdr *)hdr_addr; /* Read boot image header */ |