]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdtdec: Cast prior_stage_fdt_address with uintptr_t
authorBin Meng <bin.meng@windriver.com>
Sun, 31 Jan 2021 12:36:03 +0000 (20:36 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
commitd17e9d2558ecbc2d6486555e6717396356b1f4e1
tree97a07b537783110b9384aac7571ff0af7cf7e854
parent673625c45938dc9616e5cdb64bbd6459fd74fb00
fdtdec: Cast prior_stage_fdt_address with uintptr_t

At present prior_stage_fdt_address is declared as phys_addr_t. On
a 32-bit platform where phys_addr_t can be 64-bit, assigning its
value to gd->fdt_blob which is a pointer, can cause warnings.

Cast it to uintptr_t before the assignment.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/fdtdec.c