Re: [PATCH 6/7] x86/mm: Mark p4d_offset() __always_inline

2018-05-19 Thread Thomas Gleixner
On Fri, 18 May 2018, Kirill A. Shutemov wrote: > __pgtable_l5_enabled shouldn't be needed after system has booted, we can > mark it as __initdata, but it requires preparation. > > KASAN initialization code is a user of USE_EARLY_PGTABLE_L5, so all > pgtable_l5_enabled() translated to __pgtable_l5

[PATCH 6/7] x86/mm: Mark p4d_offset() __always_inline

2018-05-18 Thread Kirill A. Shutemov
__pgtable_l5_enabled shouldn't be needed after system has booted, we can mark it as __initdata, but it requires preparation. KASAN initialization code is a user of USE_EARLY_PGTABLE_L5, so all pgtable_l5_enabled() translated to __pgtable_l5_enabled there, including the one in p4d_offset(). It may