On Tue, May 17, 2022 at 07:45:48AM +0000, Tong Tiangen wrote: > If CONFIG_PGTABLE_LEVELS=2 and CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y, > then we trigger a compile error: > > error: implicit declaration of function 'pte_user_accessible_page' > > Move the definition of page table check helper out of branch > CONFIG_PGTABLE_LEVELS > 2 > > Fixes: daf214c14dbe ("arm64/mm: enable ARCH_SUPPORTS_PAGE_TABLE_CHECK") > Signed-off-by: Tong Tiangen <tongtiangen@xxxxxxxxxx> I'd drop the fixes tag here since the patch is queued in the mm tree and AFAIK that one doesn't have stable git commit ids. Otherwise: Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx> (I cc'ed Andrew and linux-mm as Andrew queued the original patches)