]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
riscv: refactor __get_user and __put_user
authorChristoph Hellwig <hch@lst.de>
Mon, 7 Sep 2020 05:58:23 +0000 (07:58 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sun, 4 Oct 2020 17:27:08 +0000 (10:27 -0700)
commitf289a34811d8fff29f304e14f7edd4576ed9b598
tree863b5dd03aa37e5a8d9d8f5e28b4f849cf4b7f04
parent11129e8ed4d91a062c5062d80f476adc7fbedbac
riscv: refactor __get_user and __put_user

Add new __get_user_nocheck and __put_user_nocheck that switch on the size
and call the actual inline assembly helpers, and move the uaccess enable
/ disable into the actual __get_user and __put_user.  This prepares for
natively implementing __get_kernel_nofault and __put_kernel_nofault.

Also don't bother with the deprecated register keyword for the error
return.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/uaccess.h