diff options
author | Arnd Bergmann <arnd@arndb.de> | 2022-02-15 15:37:37 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-02-25 09:36:00 +0100 |
commit | a97b693c3712f040c5802f32b2d685352e08cefa (patch) | |
tree | fc414766f8e02eab031b3e5e18590fe36f9f0888 /arch/microblaze/include/asm/pgtable.h | |
parent | 222ca305c9fd39e5ed8104da25c09b2b79a516a8 (diff) | |
download | linux-a97b693c3712f040c5802f32b2d685352e08cefa.tar.gz linux-a97b693c3712f040c5802f32b2d685352e08cefa.tar.bz2 linux-a97b693c3712f040c5802f32b2d685352e08cefa.zip |
uaccess: fix nios2 and microblaze get_user_8()
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: 6a090e97972d ("arch/microblaze: support get_user() of size 8 bytes")
Fixes: 5ccc6af5e88e ("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>
Diffstat (limited to 'arch/microblaze/include/asm/pgtable.h')
0 files changed, 0 insertions, 0 deletions