]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/mm: Remove the arch-specific pgd_leaf() definition
authorBaoquan He <bhe@redhat.com>
Mon, 31 Mar 2025 08:13:25 +0000 (16:13 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Apr 2025 20:46:51 +0000 (22:46 +0200)
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: Baoquan He <bhe@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Link: https://lore.kernel.org/r/20250331081327.256412-6-bhe@redhat.com
arch/x86/include/asm/pgtable.h

index 7bd6bd6df4a112f8d61ab3290f5d7cc2a8ce4289..5f4fcc0eea172d959e9dfd80e2e6d56894446e26 100644 (file)
@@ -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