]> www.infradead.org Git - users/dwmw2/linux.git/commit
riscv: mm: Add pfn_to_kaddr() implementation
authorBjörn Töpel <bjorn@rivosinc.com>
Wed, 5 Jun 2024 11:40:48 +0000 (13:40 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 26 Jun 2024 15:42:41 +0000 (08:42 -0700)
commit6e6c5e21b8cbe94b89d2e848afad4e6fe2a7abd8
tree2560ac4f07a2fcf8ac7c23f2d5d5456c8a7fd2d0
parent007480fe84a9963b6deaa6dceb7039eec03ac007
riscv: mm: Add pfn_to_kaddr() implementation

The pfn_to_kaddr() function is used by KASAN's memory hotplugging
path. Add the missing function to the RISC-V port, so that it can be
built with MHP and CONFIG_KASAN.

Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20240605114100.315918-6-bjorn@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/page.h