diff mbox series

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

Message ID 20230403044340.1312-3-chang.seok.bae@intel.com (mailing list archive)
State New
Headers show
Series selftests/x86: Improve signal test code | expand

Commit Message

Chang S. Bae April 3, 2023, 4:43 a.m. UTC
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 mbox series

Patch

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