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: 6a090e97 ("arch/microblaze: support get_user() of size 8 bytes") Fixes: 5ccc6af5 ("nios2: Memory management") Reviewed-by: NChristoph Hellwig <hch@lst.de> Acked-by: NDinh Nguyen <dinguyen@kernel.org> Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Showing
想要评论请 注册 或 登录