android_kernel_xiaomi_sm8350/arch/microblaze/include/asm
Arnd Bergmann a975000e7a uaccess: fix nios2 and microblaze get_user_8()
[ Upstream commit a97b693c3712f040c5802f32b2d685352e08cefa ]

These two architectures implement 8-byte get_user() through
a memcpy() into a four-byte variable, which won't fit.

Use a temporary 64-bit variable instead here, and use a double
cast the way that risc-v and openrisc do to avoid compile-time
warnings.

Fixes: 6a090e9797 ("arch/microblaze: support get_user() of size 8 bytes")
Fixes: 5ccc6af5e8 ("nios2: Memory management")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-15 14:18:08 +02:00
..
asm-compat.h
asm-offsets.h
atomic.h
cache.h
cacheflush.h
checksum.h
cmpxchg.h
cpuinfo.h
cputable.h
current.h
delay.h
dma.h
elf.h
entry.h
exceptions.h
fixmap.h
flat.h
ftrace.h
futex.h
hash.h
highmem.h
hw_irq.h
io.h
irq.h
irqflags.h
Kbuild
kgdb.h
mmu_context_mm.h
mmu_context.h
mmu.h
module.h
page.h
pci-bridge.h
pci.h
pgalloc.h
pgtable.h
processor.h
ptrace.h
pvr.h
registers.h
seccomp.h
sections.h
setup.h
string.h
switch_to.h
syscall.h
thread_info.h
timex.h
tlb.h
tlbflush.h
uaccess.h
unaligned.h
unistd.h
unwind.h
user.h