[PATCH 2/2] ram: sifive: Fix compiler warnings for 32-bit

Pragnesh Patel pragnesh.patel at openfive.com
Thu Aug 20 14:11:04 CEST 2020


>-----Original Message-----
>From: Bin Meng <bmeng.cn at gmail.com>
>Sent: 18 August 2020 13:39
>To: Rick Chen <rick at andestech.com>; Pragnesh Patel
><pragnesh.patel at openfive.com>; U-Boot Mailing List <u-boot at lists.denx.de>
>Cc: Bin Meng <bin.meng at windriver.com>
>Subject: [PATCH 2/2] ram: sifive: Fix compiler warnings for 32-bit
>
>[External Email] Do not click links or attachments unless you recognize the
>sender and know the content is safe
>
>From: Bin Meng <bin.meng at windriver.com>
>
>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 at windriver.com>
>---
>
> drivers/ram/sifive/fu540_ddr.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Pragnesh Patel <pragnesh.patel at openfive.com>


More information about the U-Boot mailing list