diff options
author | Baoquan He <bhe@redhat.com> | 2025-03-31 11:13:25 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-04-01 23:46:51 +0300 |
commit | b0510ac74e189442dde8799c1b212bd106f2300c (patch) | |
tree | 4b217c8d0ff91f63ddd861ec894e681ab693c444 | |
parent | 08733088b566b58283f0f12fb73f5db6a9a9de30 (diff) | |
download | linux-b0510ac74e189442dde8799c1b212bd106f2300c.tar.xz |
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: 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
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 7bd6bd6df4a1..5f4fcc0eea17 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -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 |