summaryrefslogtreecommitdiff
path: root/drivers/cache
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2021-09-12 06:15:08 +0300
committerLeo Yu-Chi Liang <ycliang@andestech.com>2021-10-20 05:59:09 +0300
commit2fb91a2ea74e87d5e26e95f602c9f8e3951a35cf (patch)
treea94a292f10052b4f63146385674fa034110306da /drivers/cache
parenta0cfe137157243d9cfcc928e0939b3d65274b554 (diff)
downloadu-boot-2fb91a2ea74e87d5e26e95f602c9f8e3951a35cf.tar.xz
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>
Diffstat (limited to 'drivers/cache')
-rw-r--r--drivers/cache/cache-sifive-ccache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cache/cache-sifive-ccache.c b/drivers/cache/cache-sifive-ccache.c
index 76c0ab26ae..c8766f6242 100644
--- a/drivers/cache/cache-sifive-ccache.c
+++ b/drivers/cache/cache-sifive-ccache.c
@@ -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;
}