Re: [PATCH v2] asm-generic: Remove pud_user() from pgtable-nopmd.h
From: Paul Walmsley
Date: Fri Sep 19 2025 - 20:14:40 EST
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@xxxxxxxxxx>
> Reviewed-by: Peter Xu <peterx@xxxxxxxxxx>
> Reviewed-by: Oscar Salvador <osalvador@xxxxxxx>
> Acked-by: Alexandre Ghiti <alexghiti@xxxxxxxxxxxx> # riscv
> Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>
Acked-by: Paul Walmsley <pjw@xxxxxxxxxx> # riscv
- Paul