Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/mm: Remove now unused SHARED_KERNEL_PMD

All the users of SHARED_KERNEL_PMD are gone. Zap it.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20250414173244.1125BEC3%40davehans-spike.ostc.intel.com

Dave Hansen eaa607de 99b8f0c5

-6
-2
arch/x86/include/asm/pgtable-2level_types.h
··· 18 18 } pte_t; 19 19 #endif /* !__ASSEMBLER__ */ 20 20 21 - #define SHARED_KERNEL_PMD 0 22 - 23 21 #define ARCH_PAGE_TABLE_SYNC_MASK PGTBL_PMD_MODIFIED 24 22 25 23 /*
-2
arch/x86/include/asm/pgtable-3level_types.h
··· 27 27 } pmd_t; 28 28 #endif /* !__ASSEMBLER__ */ 29 29 30 - #define SHARED_KERNEL_PMD (!static_cpu_has(X86_FEATURE_PTI)) 31 - 32 30 #define ARCH_PAGE_TABLE_SYNC_MASK PGTBL_PMD_MODIFIED 33 31 34 32 /*
-2
arch/x86/include/asm/pgtable_64_types.h
··· 46 46 47 47 #endif /* !__ASSEMBLER__ */ 48 48 49 - #define SHARED_KERNEL_PMD 0 50 - 51 49 #ifdef CONFIG_X86_5LEVEL 52 50 53 51 /*