android_kernel_xiaomi_sm8350/arch/riscv/include/asm
Ben Dooks 1464feb5b6 riscv: uaccess: fix type of 0 variable on error in get_user()
commit b9b916aee6715cd7f3318af6dc360c4729417b94 upstream.

If the get_user(x, ptr) has x as a pointer, then the setting
of (x) = 0 is going to produce the following sparse warning,
so fix this by forcing the type of 'x' when access_ok() fails.

fs/aio.c:2073:21: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/r/20221229170545.718264-1-ben-linux@fluff.org
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-18 11:41:59 +01:00
..
asm-offsets.h
asm-prototypes.h riscv: Less inefficient gcc tishift helpers (and export their symbols) 2022-06-22 14:11:24 +02:00
asm.h
atomic.h
barrier.h RISC-V: Upgrade smp_mb__after_spinlock() to iorw,iorw 2020-07-29 10:18:40 +02:00
bitops.h
bug.h
cache.h
cacheflush.h
cmpxchg.h
csr.h
current.h
delay.h
elf.h
fence.h
fixmap.h
ftrace.h riscv: Workaround mcount name prior to clang-13 2021-05-22 11:38:29 +02:00
futex.h
hugetlb.h
hwcap.h
image.h
io.h RISC-V: Make port I/O string accessors actually work 2022-10-26 13:22:15 +02:00
irq.h
irqflags.h
Kbuild
kprobes.h
linkage.h
mmiowb.h
mmu_context.h
mmu.h
module.h
page.h riscv: virt_addr_valid must check the address belongs to linear mapping 2021-02-17 10:35:16 +01:00
pci.h
perf_event.h
pgalloc.h
pgtable-32.h arch: pgtable: define MAX_POSSIBLE_PHYSMEM_BITS where needed 2020-12-02 08:49:50 +01:00
pgtable-64.h
pgtable-bits.h
pgtable.h
processor.h RISC-V: fix barrier() use in <vdso/processor.h> 2022-06-22 14:11:24 +02:00
ptrace.h
sbi.h
sifive_l2_cache.h
smp.h
sparsemem.h
spinlock_types.h
spinlock.h
string.h
switch_to.h
syscall.h
thread_info.h
timex.h
tlb.h
tlbflush.h
uaccess.h riscv: uaccess: fix type of 0 variable on error in get_user() 2023-01-18 11:41:59 +01:00
unistd.h
vdso.h
word-at-a-time.h