Add X86_FEATURE_SMAP to the disabled features mask as appropriate
and use cpu_feature_enabled() in the fault code. This lets us get
rid of a redundant IS_ENABLED(CONFIG_X86_SMAP).
Signed-off-by: Andy Lutomirski
---
arch/x86/include/asm/disabled-features.h | 8 +++-
arch/x86/mm/fault.c
Add X86_FEATURE_SMAP to the disabled features mask as appropriate
and use cpu_feature_enabled() in the fault code. This lets us get
rid of a redundant IS_ENABLED(CONFIG_X86_SMAP).
Signed-off-by: Andy Lutomirski
---
arch/x86/include/asm/disabled-features.h | 8 +++-
arch/x86/mm/fault.c
2 matches
Mail list logo