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@kernel.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Acked-by: Alexandre Ghiti <redacted> # riscv
Acked-by: Catalin Marinas <catalin.marinas@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