mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
riscv: Fix compilation error with FAST_GUP and rv32
[ Upstream commit2bb7e0c493
] By surrounding the definition of pte_leaf_size() with a ifdef napot as it should have been. Fixes:e0fe5ab419
("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>
This commit is contained in:
parent
41d8bb8044
commit
4b24e17ef9
1 changed files with 2 additions and 0 deletions
|
@ -439,9 +439,11 @@ static inline pte_t pte_mkhuge(pte_t pte)
|
||||||
return pte;
|
return pte;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_RISCV_ISA_SVNAPOT
|
||||||
#define pte_leaf_size(pte) (pte_napot(pte) ? \
|
#define pte_leaf_size(pte) (pte_napot(pte) ? \
|
||||||
napot_cont_size(napot_cont_order(pte)) :\
|
napot_cont_size(napot_cont_order(pte)) :\
|
||||||
PAGE_SIZE)
|
PAGE_SIZE)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_NUMA_BALANCING
|
#ifdef CONFIG_NUMA_BALANCING
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue