Files
linux/arch/riscv/include/asm
Alexandre Ghiti a03ee11b8f riscv: Fix sparse warning about different address spaces
We did not propagate the __user attribute of the pointers in
__get_kernel_nofault() and __put_kernel_nofault(), which results in
sparse complaining:

>> mm/maccess.c:41:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const [noderef] __user *from @@     got unsigned long long [usertype] * @@
   mm/maccess.c:41:17: sparse:     expected void const [noderef] __user *from
   mm/maccess.c:41:17: sparse:     got unsigned long long [usertype] *

So fix this by correctly casting those pointers.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202508161713.RWu30Lv1-lkp@intel.com/
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Fixes: f6bff7827a ("riscv: uaccess: use 'asm_goto_output' for get_user()")
Cc: stable@vger.kernel.org
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Cyril Bur <cyrilbur@tenstorrent.com>
Link: https://lore.kernel.org/r/20250903-dev-alex-sparse_warnings_v1-v1-2-7e6350beb700@rivosinc.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
2025-09-05 15:33:52 -06:00
..
2025-06-05 11:09:37 -07:00
2025-01-18 12:33:39 -08:00
2022-03-10 09:29:21 -08:00
2024-06-26 08:02:33 -07:00
2024-09-03 07:18:33 -07:00
2024-05-19 14:36:19 -07:00
2025-06-05 11:09:37 -07:00
2025-06-05 11:09:37 -07:00
2025-06-26 16:06:40 +02:00
2022-03-29 14:31:07 -07:00
2025-03-26 15:56:46 -07:00
2021-01-14 15:09:06 -08:00
2025-06-04 15:11:01 -07:00
2024-03-15 10:17:38 -07:00
2021-01-07 19:00:50 -08:00
2025-03-18 12:59:03 +00:00
2024-11-05 12:55:39 +01:00
2024-09-03 07:18:34 -07:00