Thread (2 messages) 2 messages, 2 authors, 2025-09-20

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

From: Paul Walmsley <pjw@kernel.org>
Date: 2025-09-20 00:14:40
Also in: linux-arch, linux-mm, linux-riscv, lkml

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 <redacted>
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>
Acked-by: Paul Walmsley <pjw@kernel.org> # riscv


- Paul
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help