[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c7f5a944-0abf-8696-217b-4fee650ca96a@kernel.org>
Date: Fri, 19 Sep 2025 18:55:28 -0600 (MDT)
From: Paul Walmsley <pjw@...nel.org>
To: Alexandre Ghiti <alexghiti@...osinc.com>
cc: kernel test robot <lkp@...el.com>, Al Viro <viro@...iv.linux.org.uk>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>, Albert Ou <aou@...s.berkeley.edu>,
Alexandre Ghiti <alex@...ti.fr>, Cyril Bur <cyrilbur@...storrent.com>,
Jisheng Zhang <jszhang@...nel.org>, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH 1/2] riscv: Fix sparse warning in __get_user_error()
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.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202508062321.gHv4kvuY-lkp@intel.com/
> Fixes: f6bff7827a48 ("riscv: uaccess: use 'asm_goto_output' for get_user()")
> Cc: stable@...r.kernel.org
> Signed-off-by: Alexandre Ghiti <alexghiti@...osinc.com>
> ---
> arch/riscv/include/asm/uaccess.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, this one was sent upstream as part of the last fixes PR.
- Paul
Powered by blists - more mailing lists