[PATCH 4/7] fdtdec: Cast prior_stage_fdt_address with uintptr_t

Simon Glass sjg at chromium.org
Sun Jan 24 03:03:24 CET 2021


On Thu, 21 Jan 2021 at 08:01, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> From: Bin Meng <bin.meng at windriver.com>
>
> 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 at windriver.com>
> ---
>
>  lib/fdtdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

The prior-stage stuff should be modified to use SPL_HANDOFF


More information about the U-Boot mailing list