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>
Showing
- tools/testing/selftests/x86/amx.c 0 additions, 16 deletionstools/testing/selftests/x86/amx.c
- tools/testing/selftests/x86/fsgsbase.c 0 additions, 6 deletionstools/testing/selftests/x86/fsgsbase.c
- tools/testing/selftests/x86/syscall_arg_fault.c 0 additions, 1 deletiontools/testing/selftests/x86/syscall_arg_fault.c
- tools/testing/selftests/x86/test_vsyscall.c 0 additions, 5 deletionstools/testing/selftests/x86/test_vsyscall.c
- tools/testing/selftests/x86/vdso_restorer.c 2 additions, 0 deletionstools/testing/selftests/x86/vdso_restorer.c
Please register or sign in to comment