mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 00:02:13 +02:00
ram: sifive: Fix compiler warnings for 32-bit
priv->info.size is of type 'size_t' but the length modifier is l. Fix this by casting priv->info.size. Note 'z' cannot be used as the modifier as SPL does not support that. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Rick Chen <rick@andestech.com> Reviewed-by: Pragnesh Patel <pragnesh.patel@openfive.com>
This commit is contained in:
@@ -316,12 +316,12 @@ static int fu540_ddr_setup(struct udevice *dev)
|
||||
priv->info.size = get_ram_size((long *)priv->info.base,
|
||||
ddr_size);
|
||||
|
||||
debug("%s : %lx\n", __func__, priv->info.size);
|
||||
debug("%s : %lx\n", __func__, (uintptr_t)priv->info.size);
|
||||
|
||||
/* check memory access for all memory */
|
||||
if (priv->info.size != ddr_size) {
|
||||
printf("DDR invalid size : 0x%lx, expected 0x%lx\n",
|
||||
priv->info.size, (uintptr_t)ddr_size);
|
||||
(uintptr_t)priv->info.size, (uintptr_t)ddr_size);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user