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

Paul Walmsley pjw at kernel.org
Wed Jan 14 17:48:13 PST 2026


Hi Arnd,

On Tue, 6 Jan 2026, Christophe Leroy (CS GROUP) 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 (CS GROUP) <chleroy at kernel.org>
> 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>
> ---
> Who should take this patch ? I expected it to be merged by Arnd as asm-generic maintainer but this is the second time I resend.
> 
> Should the patch go via riscv tree instead as the undue pud_user() was initialy introduced by riscv ?
> 
> v2: Change ARM64 pud_user macro to pud_user(pud)

This one looks like it should go upstream through you?

If you'd prefer arch/riscv to pick it up, let us know.


thanks,

- Paul



More information about the linux-arm-kernel mailing list