diff options
| author | Alexandre Ghiti <[email protected]> | 2025-09-03 18:53:08 +0000 |
|---|---|---|
| committer | Paul Walmsley <[email protected]> | 2025-09-05 21:33:44 +0000 |
| commit | fef7ded169ed7e133612f90a032dc2af1ce19bef (patch) | |
| tree | 14e08a8abfa5b82db0696822f94e6111d627de43 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |
| parent | riscv: kexec: Initialize kexec_buf struct (diff) | |
| download | kernel-fef7ded169ed7e133612f90a032dc2af1ce19bef.tar.gz kernel-fef7ded169ed7e133612f90a032dc2af1ce19bef.zip | |
riscv: Fix sparse warning in __get_user_error()
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 <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: f6bff7827a48 ("riscv: uaccess: use 'asm_goto_output' for get_user()")
Cc: [email protected]
Signed-off-by: Alexandre Ghiti <[email protected]>
Reviewed-by: Clément Léger <[email protected]>
Reviewed-by: Cyril Bur <[email protected]>
Link: https://lore.kernel.org/r/20250903-dev-alex-sparse_warnings_v1-v1-1-7e6350beb700@rivosinc.com
Signed-off-by: Paul Walmsley <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
0 files changed, 0 insertions, 0 deletions
