[PATCH v2] asm-generic: Remove pud_user() from pgtable-nopmd.h

Paul Walmsley pjw at kernel.org
Fri Sep 19 17:14:34 PDT 2025


On Mon, 18 Aug 2025, Christophe Leroy wrote:

> Commit 2c8a81dc0cc5 ("riscv/mm: fix two page table check related
> issues") added pud_user() in include/asm-generic/pgtable-nopmd.h
> 
> But pud_user() only exists on ARM64 and RISCV and is not expected
> by any part of MM.
> 
> Add the missing definition in arch/riscv/include/asm/pgtable-32.h
> and remove it from asm-generic/pgtable-nopmd.h
> 
> A stub pud_user() is also required for ARM64 after
> commit ed928a3402d8 ("arm64/mm: fix page table check compile
> error for CONFIG_PGTABLE_LEVELS=2")
> 
> Signed-off-by: Christophe Leroy <christophe.leroy at csgroup.eu>
> Reviewed-by: Peter Xu <peterx at redhat.com>
> Reviewed-by: Oscar Salvador <osalvador at suse.de>
> Acked-by: Alexandre Ghiti <alexghiti at rivosinc.com> # riscv
> Acked-by: Catalin Marinas <catalin.marinas at arm.com>

Acked-by: Paul Walmsley <pjw at kernel.org> # riscv


- Paul



More information about the linux-riscv mailing list