[PATCH v1 2/4] selftests/x86/mov_ss_trap: Include processor-flags.h

Chang S. Bae posted 4 patches 2 years, 10 months ago
[PATCH v1 2/4] selftests/x86/mov_ss_trap: Include processor-flags.h
Posted by Chang S. Bae 2 years, 10 months ago
Instead of defining X86_EFLAGS_RF, include the header file.

Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
Resolve here before including helper.h in the next patch which,
otherwise, has to remove the define there along with other changes.
---
 tools/testing/selftests/x86/mov_ss_trap.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tools/testing/selftests/x86/mov_ss_trap.c b/tools/testing/selftests/x86/mov_ss_trap.c
index 6b9bf8dc3b60..f8633aafc90c 100644
--- a/tools/testing/selftests/x86/mov_ss_trap.c
+++ b/tools/testing/selftests/x86/mov_ss_trap.c
@@ -35,8 +35,7 @@
 #include <string.h>
 #include <setjmp.h>
 #include <sys/prctl.h>
-
-#define X86_EFLAGS_RF (1UL << 16)
+#include <asm/processor-flags.h>
 
 #if __x86_64__
 # define REG_IP REG_RIP
-- 
2.17.1