mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-11 20:03:50 -04:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user