Commit 2341c80cd261291aff2c58b70bacc053ecca9d1d

Authored by Tom Rini
Committed by Marek Vasut
1 parent 7715dea48b

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -162,7 +162,7 @@
162 162 void *download_buffer,
163 163 unsigned int download_bytes)
164 164 {
165   - u32 hdr_addr; /* boot image header address */
  165 + uintptr_t hdr_addr; /* boot image header address */
166 166 struct andr_img_hdr *hdr; /* boot image header */
167 167 lbaint_t hdr_sectors; /* boot image header sectors */
168 168 u8 *ramdisk_buffer;
... ... @@ -185,7 +185,7 @@
185 185 }
186 186  
187 187 /* Put boot image header in fastboot buffer after downloaded zImage */
188   - hdr_addr = (u32)download_buffer + ALIGN(download_bytes, PAGE_SIZE);
  188 + hdr_addr = (uintptr_t)download_buffer + ALIGN(download_bytes, PAGE_SIZE);
189 189 hdr = (struct andr_img_hdr *)hdr_addr;
190 190  
191 191 /* Read boot image header */