]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Introduce set_kernel_memory helper
authorAlexandre Ghiti <alex@ghiti.fr>
Thu, 24 Jun 2021 12:00:40 +0000 (14:00 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 1 Jul 2021 03:56:50 +0000 (20:56 -0700)
commit22284fcb6f9f1d4463d15c35f321aac64c5096a2
tree73c0c95f9270ad03463ab4e0483b85e692f4469f
parent5a16a644b1dc8dca938d8ab8cef91fe5c4ae7210
riscv: Introduce set_kernel_memory helper

This helper should be used for setting permissions to the kernel
mapping as it takes pointers as arguments and then avoids explicit cast
to unsigned long needed for the set_memory_* API.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/set_memory.h