diff options
author | Baoquan He <bhe@redhat.com> | 2025-03-31 11:13:26 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-04-01 23:48:51 +0300 |
commit | c083eff324edd73eb23f4bd3f40f388a3e7c2cd2 (patch) | |
tree | d91838f3655a4f37ded53dc3a55e441da510c225 | |
parent | b0510ac74e189442dde8799c1b212bd106f2300c (diff) | |
download | linux-c083eff324edd73eb23f4bd3f40f388a3e7c2cd2.tar.xz |
x86/mm: Remove the arch-specific p4d_leaf() definition
P4D 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-7-bhe@redhat.com
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 5f4fcc0eea17..5ddba366d3b4 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 |