On Wed, 21 Aug 2019, Mike Rapoport wrote: > diff --git a/arch/x86/include/asm/pgtable_32.h b/arch/x86/include/asm/pgtable_32.h > index b9b9f8a..0dca7f7 100644 > --- a/arch/x86/include/asm/pgtable_32.h > +++ b/arch/x86/include/asm/pgtable_32.h > @@ -29,7 +29,6 @@ extern pgd_t swapper_pg_dir[1024]; > extern pgd_t initial_page_table[1024]; > extern pmd_t initial_pg_pmd[]; > > -static inline void pgtable_cache_init(void) { } > void paging_init(void); > void sync_initial_page_table(void); > > diff --git a/arch/x86/include/asm/pgtable_64.h b/arch/x86/include/asm/pgtable_64.h > index a26d2d5..0b6c4042 100644 > --- a/arch/x86/include/asm/pgtable_64.h > +++ b/arch/x86/include/asm/pgtable_64.h > @@ -241,8 +241,6 @@ extern void cleanup_highmap(void); > #define HAVE_ARCH_UNMAPPED_AREA > #define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN > > -#define pgtable_cache_init() do { } while (0) > - > #define PAGE_AGP PAGE_KERNEL_NOCACHE > #define HAVE_PAGE_AGP 1 > > diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c > index 73757bc..3e4b903 100644 > --- a/arch/x86/mm/pgtable.c > +++ b/arch/x86/mm/pgtable.c > @@ -357,7 +357,7 @@ static void pgd_prepopulate_user_pmd(struct mm_struct *mm, > > static struct kmem_cache *pgd_cache; > > -void __init pgd_cache_init(void) > +void __init pgtable_cache_init(void) > { > /* > * When PAE kernel is running as a Xen domain, it does not use > @@ -402,10 +402,6 @@ static inline void _pgd_free(pgd_t *pgd) > } > #else > > -void __init pgd_cache_init(void) > -{ > -} Acked-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>