2024-05-01 12:30:41

by Muhammad Usama Anjum

[permalink] [raw]
Subject: [PATCH 5/8] selftests: x86: syscall_arg_fault_32: remove unused variable

Remove unused global variable.

syscall_arg_fault.c:32:30: warning: unused variable 'sig_traps' [-Wunused-variable]
32 | static volatile sig_atomic_t sig_traps;

Signed-off-by: Muhammad Usama Anjum <[email protected]>
---
tools/testing/selftests/x86/syscall_arg_fault.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/tools/testing/selftests/x86/syscall_arg_fault.c b/tools/testing/selftests/x86/syscall_arg_fault.c
index 461fa41a4d02a..48ab065a76f9b 100644
--- a/tools/testing/selftests/x86/syscall_arg_fault.c
+++ b/tools/testing/selftests/x86/syscall_arg_fault.c
@@ -29,7 +29,6 @@ static void sethandler(int sig, void (*handler)(int, siginfo_t *, void *),
err(1, "sigaction");
}

-static volatile sig_atomic_t sig_traps;
static sigjmp_buf jmpbuf;

static volatile sig_atomic_t n_errs;
--
2.39.2