]> git.dujemihanovic.xyz Git - u-boot.git/commit
ram: sifive: Fix compiler warnings for 32-bit
authorBin Meng <bin.meng@windriver.com>
Tue, 18 Aug 2020 08:09:21 +0000 (01:09 -0700)
committerAndes <uboot@andestech.com>
Tue, 25 Aug 2020 01:33:16 +0000 (09:33 +0800)
commit3ab260105214d56a419c84e6dacbb8ae514548f1
tree67d7f55e8288ac322ed8ea774733ee942e1384ac
parent52dc7ae74918d01fa55ca103841a0eaa0dfa7409
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>
drivers/ram/sifive/fu540_ddr.c