public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] selftests: x86: build suite with clang
@ 2024-05-01 12:29 Muhammad Usama Anjum
  2024-05-01 12:29 ` [PATCH 1/8] selftests: x86: Remove dependence of headers file Muhammad Usama Anjum
                   ` (10 more replies)
  0 siblings, 11 replies; 16+ messages in thread
From: Muhammad Usama Anjum @ 2024-05-01 12:29 UTC (permalink / raw)
  To: Shuah Khan, Nathan Chancellor, Nick Desaulniers, Bill Wendling,
	Justin Stitt, Muhammad Usama Anjum, Rick Edgecombe,
	Mike Rapoport (IBM), Ingo Molnar, Dave Hansen, Alexey Dobriyan,
	Binbin Wu, Chang S. Bae, Kirill A. Shutemov, linux-kselftest,
	linux-kernel, llvm
  Cc: kernel

This series fixes build errors found by clang to allow the x86 suite to
get built with the clang.

Unfortunately, there is one bug [1] in the clang becuase of which
extended asm isn't handled correctly by it and build fails for
sysret_rip.c. Hence even after this series the build of this test would
fail with clang. Should we disable this test for now when clang is used
until the bug is fixed in clang? Not sure. Any opinions?

[1] https://github.com/llvm/llvm-project/issues/53728

Muhammad Usama Anjum (8):
  selftests: x86: Remove dependence of headers file
  selftests: x86: check_initial_reg_state: remove -no-pie while using
    -static
  selftests: x86: test_vsyscall: remove unused function
  selftests: x86: fsgsbase_restore: fix asm directive from =rm to =r
  selftests: x86: syscall_arg_fault_32: remove unused variable
  selftests: x86: test_FISTTP: use fisttps instead of ambigous fisttp
  selftests: x86: fsgsbase: Remove unused function and variable
  selftests: x86: amx: Remove unused functions

 tools/testing/selftests/x86/Makefile            |  9 +++++----
 tools/testing/selftests/x86/amx.c               | 16 ----------------
 tools/testing/selftests/x86/fsgsbase.c          |  6 ------
 tools/testing/selftests/x86/fsgsbase_restore.c  |  2 +-
 tools/testing/selftests/x86/syscall_arg_fault.c |  1 -
 tools/testing/selftests/x86/test_FISTTP.c       |  8 ++++----
 tools/testing/selftests/x86/test_vsyscall.c     |  5 -----
 7 files changed, 10 insertions(+), 37 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-06-07 21:25 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01 12:29 [PATCH 0/8] selftests: x86: build suite with clang Muhammad Usama Anjum
2024-05-01 12:29 ` [PATCH 1/8] selftests: x86: Remove dependence of headers file Muhammad Usama Anjum
2024-05-01 12:29 ` [PATCH 2/8] selftests: x86: check_initial_reg_state: remove -no-pie while using -static Muhammad Usama Anjum
2024-05-01 12:29 ` [PATCH 3/8] selftests: x86: test_vsyscall: remove unused function Muhammad Usama Anjum
2024-05-01 12:29 ` [PATCH 4/8] selftests: x86: fsgsbase_restore: fix asm directive from =rm to =r Muhammad Usama Anjum
2024-05-01 12:29 ` [PATCH 5/8] selftests: x86: syscall_arg_fault_32: remove unused variable Muhammad Usama Anjum
2024-05-01 12:29 ` [PATCH 6/8] selftests: x86: test_FISTTP: use fisttps instead of ambigous fisttp Muhammad Usama Anjum
2024-05-01 12:29 ` [PATCH 7/8] selftests: x86: fsgsbase: Remove unused function and variable Muhammad Usama Anjum
2024-05-01 12:29 ` [PATCH 8/8] selftests: x86: amx: Remove unused functions Muhammad Usama Anjum
2024-05-06 23:26 ` [PATCH 0/8] selftests: x86: build suite with clang Fangrui Song
2024-05-15 22:20   ` Fangrui Song
2024-05-16 14:06 ` Muhammad Usama Anjum
2024-05-28  5:04 ` Muhammad Usama Anjum
2024-06-07 20:50   ` Shuah Khan
2024-06-07 21:17     ` Dave Hansen
2024-06-07 21:25       ` John Hubbard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox