]> 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)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:17:34 +0000 (18:17 -0400)
commit4b24e17ef97b258f86a3b1ca7de0fde9c2b4dae5
tree5b5d40c11aac867a7fe135017252d72d5445c734
parent41d8bb804475136d5ae57a93367c53cbda521b39
riscv: Fix compilation error with FAST_GUP and rv32

[ Upstream commit 2bb7e0c49302feec1c2f777bbfe8726169986ed8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/include/asm/pgtable.h