]> git.itanic.dy.fi Git - linux-stable/commit
riscv: Fix compilation error with FAST_GUP and rv32
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Mon, 4 Mar 2024 08:02:47 +0000 (09:02 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 15 Mar 2024 16:27:17 +0000 (09:27 -0700)
commit2bb7e0c49302feec1c2f777bbfe8726169986ed8
tree7ad36096c161bdad869d602509eb4ebd8ae3bcb6
parente0fe5ab4192c171c111976dbe90bbd37d3976be0
riscv: Fix compilation error with FAST_GUP and rv32

By surrounding the definition of pte_leaf_size() with a ifdef napot as
it should have been.

Fixes: e0fe5ab4192c ("riscv: Fix pte_leaf_size() for NAPOT")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Link: https://lore.kernel.org/r/20240304080247.387710-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/pgtable.h