diff options
| author | Zhihao Cheng <[email protected]> | 2025-01-20 04:38:24 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2025-01-20 08:09:24 +0000 |
| commit | 69146a8c893f734cefaac0af6f917f894f29077e (patch) | |
| tree | 3cad8de523ddac18cf6a7e0594ff5e9e6cee977f /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | ubi: Implement ioctl for detailed erase counters (diff) | |
| download | kernel-69146a8c893f734cefaac0af6f917f894f29077e.tar.gz kernel-69146a8c893f734cefaac0af6f917f894f29077e.zip | |
ubi: ubi_get_ec_info: Fix compiling error 'cast specifies array type'
On risc V platform, there is a type conversion for the return value
(unsigned long type) of __untagged_addr_remote() in function
untagged_addr(). The compiler will complain when the parameter 'addr'
is an array type:
arch/riscv/include/asm/uaccess.h:33:9: error: cast specifies array type
(__force __typeof__(addr))__untagged_addr_remote(current->mm, __addr)
Fix it by converting the input parameter as a pointer.
Fixes: 01099f635a4c ("ubi: Implement ioctl for detailed erase counters")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Zhihao Cheng <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
