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

Leo Liang
2023-01-31T07:19:42Z

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@andestech.com>
> ---
> drivers/cache/cache-v5l2.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>