Commit b0510ac7 authored by Baoquan He's avatar Baoquan He Committed by Ingo Molnar
Browse files

x86/mm: Remove the arch-specific pgd_leaf() definition



PGD huge pages are not supported yet, let's use the generic definition
in <linux/pgtable.h>.

[ mingo: Cleaned up the changelog. ]

Signed-off-by: default avatarBaoquan He <bhe@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Reviewed-by: default avatarOscar Salvador <osalvador@suse.de>
Link: https://lore.kernel.org/r/20250331081327.256412-6-bhe@redhat.com
parent 08733088
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1472,9 +1472,6 @@ static inline bool pgdp_maps_userspace(void *__ptr)
	return (((ptr & ~PAGE_MASK) / sizeof(pgd_t)) < PGD_KERNEL_START);
}

#define pgd_leaf	pgd_leaf
static inline bool pgd_leaf(pgd_t pgd) { return false; }

#ifdef CONFIG_MITIGATION_PAGE_TABLE_ISOLATION
/*
 * All top-level MITIGATION_PAGE_TABLE_ISOLATION page tables are order-1 pages