From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 23 Jan 2021 19:03:24 -0700 Subject: [PATCH 4/7] fdtdec: Cast prior_stage_fdt_address with uintptr_t In-Reply-To: <20210121150015.25558-5-bmeng.cn@gmail.com> References: <20210121150015.25558-1-bmeng.cn@gmail.com> <20210121150015.25558-5-bmeng.cn@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 21 Jan 2021 at 08:01, Bin Meng wrote: > > From: Bin Meng > > 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 > --- > > lib/fdtdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass The prior-stage stuff should be modified to use SPL_HANDOFF