[PATCH 11/11] driver: cache-v5l2: Fix type casting warning on RV32

Leo Liang ycliang at andestech.com
Tue Jan 31 08:19:21 CET 2023


On Thu, Jan 19, 2023 at 03:05:44PM +0800, Yu Chien Peter Lin wrote:
> This patch fixes following warning for riscv32 compilation.
> 
> drivers/cache/cache-v5l2.c:122:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>   122 |         regs = (struct l2cache *)dev_read_addr(dev);
>       |                ^
> 
> Signed-off-by: Yu Chien Peter Lin <peterlin at andestech.com>
> ---
>  drivers/cache/cache-v5l2.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>


More information about the U-Boot mailing list