Skip to content

selftests/x86: fix build errors and warnings found via clang

John Hubbard linux-kselftest lkml llvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7selftests/x86: fix Makefile dependencies to work with clangtools/testing/selftests/x86/Makefile+15 -60 replies
2/7selftests/x86: build test_FISTTP.c with clangtools/testing/selftests/x86/test_FISTTP.c+4 -40 replies
3/7selftests/x86: build fsgsbase_restore.c with clangtools/testing/selftests/x86/Makefile tools/testing/selftests/x86/clang_helpers_32.S tools/testing/selftests/x86/clang_helpers_64.S +1 more+30 -60 replies
4/7selftests/x86: build sysret_rip.c with clangtools/testing/selftests/x86/Makefile tools/testing/selftests/x86/clang_helpers_64.S tools/testing/selftests/x86/sysret_rip.c+23 -140 replies
5/7selftests/x86: avoid -no-pie warnings from clang during compilationtools/testing/selftests/x86/Makefile+7 -00 replies
6/7selftests/x86: remove (or use) unused variables and functionstools/testing/selftests/x86/amx.c tools/testing/selftests/x86/fsgsbase.c tools/testing/selftests/x86/syscall_arg_fault.c +2 more+2 -280 replies
7/7selftests/x86: fix printk() format warningstools/testing/selftests/x86/sigreturn.c tools/testing/selftests/x86/test_vsyscall.c+6 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] selftests/x86: fix build errors and warnings found via clang

Hi,

Just a bunch of build and warnings fixes that show up when building with clang. Some of these depend on each other, so I'm sending them as a series.

Enjoy!

thanks,
John Hubbard

John Hubbard (7):
selftests/x86: fix Makefile dependencies to work with clang selftests/x86: build test_FISTTP.c with clang selftests/x86: build fsgsbase_restore.c with clang selftests/x86: build sysret_rip.c with clang selftests/x86: avoid -no-pie warnings from clang during compilation selftests/x86: remove (or use) unused variables and functions selftests/x86: fix printk() format warnings

 tools/testing/selftests/x86/Makefile          | 31 +++++++++++++++----
 tools/testing/selftests/x86/amx.c             | 16 ----------
 .../testing/selftests/x86/clang_helpers_32.S  | 11 +++++++
 .../testing/selftests/x86/clang_helpers_64.S  | 28 +++++++++++++++++
 tools/testing/selftests/x86/fsgsbase.c        |  6 ----
 .../testing/selftests/x86/fsgsbase_restore.c  | 11 +++----
 tools/testing/selftests/x86/sigreturn.c       |  2 +-
 .../testing/selftests/x86/syscall_arg_fault.c |  1 -
 tools/testing/selftests/x86/sysret_rip.c      | 20 ++++--------
 tools/testing/selftests/x86/test_FISTTP.c     |  8 ++---
 tools/testing/selftests/x86/test_vsyscall.c   | 15 +++------
 tools/testing/selftests/x86/vdso_restorer.c   |  2 ++
 12 files changed, 87 insertions(+), 64 deletions(-)
 create mode 100644 tools/testing/selftests/x86/clang_helpers_32.S
 create mode 100644 tools/testing/selftests/x86/clang_helpers_64.S

base-commit: f03359bca01bf4372cf2c118cd9a987a5951b1c8
prerequisite-patch-id: b901ece2a5b78503e2fb5480f20e304d36a0ea27

Signature · 1 line
2.45.0