Instead of defining X86_EFLAGS_RF, include the header file. Signed-off-by: Chang S. Bae <chang.seok.bae@xxxxxxxxx> Cc: Shuah Khan <shuah@xxxxxxxxxx> Cc: linux-kselftest@xxxxxxxxxxxxxxx Cc: linux-kernel@xxxxxxxxxxxxxxx --- 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