From: Baoquan He Date: Mon, 31 Mar 2025 08:13:26 +0000 (+0800) Subject: x86/mm: Remove the arch-specific p4d_leaf() definition X-Git-Tag: v6.16-rc1~195^2~26^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c083eff324edd73eb23f4bd3f40f388a3e7c2cd2;p=thirdparty%2Flinux.git x86/mm: Remove the arch-specific p4d_leaf() definition P4D huge pages are not supported yet, let's use the generic definition in . [ mingo: Cleaned up the changelog. ] Signed-off-by: Baoquan He Signed-off-by: Ingo Molnar Reviewed-by: Oscar Salvador Link: https://lore.kernel.org/r/20250331081327.256412-7-bhe@redhat.com --- diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 5f4fcc0eea172..5ddba366d3b4d 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -292,13 +292,6 @@ static inline unsigned long pgd_pfn(pgd_t pgd) return (pgd_val(pgd) & PTE_PFN_MASK) >> PAGE_SHIFT; } -#define p4d_leaf p4d_leaf -static inline bool p4d_leaf(p4d_t p4d) -{ - /* No 512 GiB pages yet */ - return 0; -} - #define pte_page(pte) pfn_to_page(pte_pfn(pte)) #define pmd_leaf pmd_leaf