]> git.ipfire.org Git - thirdparty/kernel/stable.git/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:20:09 +0000 (18:20 -0400)
commitf0f52af461df524d7b396bbe61c1f263808802dc
treed2c2c7fddb8ae074ce36ec15c5bb6eb9cfe06171
parent4cbc5e93bf6eb238cfaa9b839083cd66d2914ce4
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