[PATCH 1/2] riscv: Fix sparse warning in __get_user_error()

Paul Walmsley pjw at kernel.org
Fri Sep 5 15:14:43 PDT 2025


On Wed, 3 Sep 2025, Alexandre Ghiti wrote:

> We used to assign 0 to x without an appropriate cast which results in
> sparse complaining when x is a pointer:
> 
> >> block/ioctl.c:72:39: sparse: sparse: Using plain integer as NULL pointer
> 
> So fix this by casting 0 to the correct type of x.

Thanks, queued for v6.17-rc fixes.

- Paul



More information about the linux-riscv mailing list