[PATCHv5 18/19] x86/mm: Redefine some of page table helpers as macros

2017-08-21 Thread Kirill A. Shutemov
This is preparation for the next patch, which would change pgtable_l5_enabled to be cpu_feature_enabled(X86_FEATURE_LA57). The change makes PTE_FLAGS_MASK and other things to be dependent on cpu_feature_enabled() definition from cpufeature.h. And cpufeature.h depends on pgtable_types.h Let's

[PATCHv5 18/19] x86/mm: Redefine some of page table helpers as macros

2017-08-21 Thread Kirill A. Shutemov
This is preparation for the next patch, which would change pgtable_l5_enabled to be cpu_feature_enabled(X86_FEATURE_LA57). The change makes PTE_FLAGS_MASK and other things to be dependent on cpu_feature_enabled() definition from cpufeature.h. And cpufeature.h depends on pgtable_types.h Let's