mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 07:31:15 +00:00
cache: sifive: Fix -Wint-to-pointer-cast warning
The following warning is seen in cache-sifive-ccache.c in a 32-bit build: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Fix by casting it with uintptr_t. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
This commit is contained in:
parent
a0cfe13715
commit
2fb91a2ea7
1 changed files with 1 additions and 1 deletions
2
drivers/cache/cache-sifive-ccache.c
vendored
2
drivers/cache/cache-sifive-ccache.c
vendored
|
@ -38,7 +38,7 @@ static int sifive_ccache_get_info(struct udevice *dev, struct cache_info *info)
|
|||
{
|
||||
struct sifive_ccache *priv = dev_get_priv(dev);
|
||||
|
||||
info->base = (phys_addr_t)priv->base;
|
||||
info->base = (uintptr_t)priv->base;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue