diff options
| author | John Hubbard <jhubbard@nvidia.com> | 2024-07-04 00:24:30 -0700 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-07-11 11:23:55 -0600 |
| commit | 7d17b29b0e4b9a97426873f72e9cc6d35cfaf88f (patch) | |
| tree | 588e08ccf3bc29ff9981f3f453333020507def3c /tools/testing/selftests/x86/syscall_arg_fault.c | |
| parent | a89e589051d48f605c11662c35c56be65e1bca64 (diff) | |
selftests/x86: remove (or use) unused variables and functions
When building with clang, via:
make LLVM=1 -C tools/testing/selftests
...quite a few functions are variables are generating "unused" warnings.
Fix the warnings by deleting the unused items.
One item, the "nerrs" variable in vsdo_restorer.c's main(), is unused
but probably wants to be returned from main(), as a non-zero result.
That result is also unused right now, so another option would be to
delete it entirely, but this way, main() also gets fixed. It was missing
a return value.
Acked-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/x86/syscall_arg_fault.c')
| -rw-r--r-- | tools/testing/selftests/x86/syscall_arg_fault.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/x86/syscall_arg_fault.c b/tools/testing/selftests/x86/syscall_arg_fault.c index 461fa41a4d02..48ab065a76f9 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; |