mbox series

[0/6] kselftest/arm64: Build fixes for clang

Message ID 20230111-arm64-kselftest-clang-v1-0-89c69d377727@kernel.org (mailing list archive)
Headers show
Series kselftest/arm64: Build fixes for clang | expand

Message

Mark Brown Jan. 12, 2023, 7:51 p.m. UTC
This series provides a few small build fixes and Makefile tweaks which
allow us to build the arm64 selftests using clang as well as GCC.  I
also fixed one minor issue I noticed in the MTE Makefile while doing the
updates there.

To: Catalin Marinas <catalin.marinas@arm.com>
To: Will Deacon <will@kernel.org>
To: Shuah Khan <shuah@kernel.org>
To: Nathan Chancellor <nathan@kernel.org>
To: Nick Desaulniers <ndesaulniers@google.com>
To: Tom Rix <trix@redhat.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kselftest@vger.kernel.org
Cc: llvm@lists.linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>

---
Mark Brown (6):
      kselftest/arm64: Fix .pushsection for strings in FP tests
      kselftest/arm64: Remove redundant _start labels from FP tests
      kselftest/arm64: Don't pass headers to the compiler as source
      kselftest/arm64: Initialise current at build time in signal tests
      kselftest/arm64: Support build of MTE tests with clang
      kselftest/arm64: Remove spurious comment from MTE test Makefile

 tools/testing/selftests/arm64/fp/assembler.h        |  2 +-
 tools/testing/selftests/arm64/fp/fp-pidbench.S      |  1 -
 tools/testing/selftests/arm64/fp/fpsimd-test.S      |  1 -
 tools/testing/selftests/arm64/fp/sve-test.S         |  1 -
 tools/testing/selftests/arm64/fp/za-test.S          |  1 -
 tools/testing/selftests/arm64/mte/Makefile          | 21 +++++++++++++++------
 tools/testing/selftests/arm64/signal/Makefile       |  8 ++++++--
 tools/testing/selftests/arm64/signal/test_signals.c |  4 +---
 8 files changed, 23 insertions(+), 16 deletions(-)
---
base-commit: b7bfaa761d760e72a969d116517eaa12e404c262
change-id: 20230111-arm64-kselftest-clang-f734b6b0c057

Best regards,

Comments

Nick Desaulniers Jan. 12, 2023, 8:20 p.m. UTC | #1
On Thu, Jan 12, 2023 at 11:52 AM Mark Brown <broonie@kernel.org> wrote:
>
> This series provides a few small build fixes and Makefile tweaks which
> allow us to build the arm64 selftests using clang as well as GCC.  I
> also fixed one minor issue I noticed in the MTE Makefile while doing the
> updates there.
>
> To: Catalin Marinas <catalin.marinas@arm.com>
> To: Will Deacon <will@kernel.org>
> To: Shuah Khan <shuah@kernel.org>
> To: Nathan Chancellor <nathan@kernel.org>
> To: Nick Desaulniers <ndesaulniers@google.com>
> To: Tom Rix <trix@redhat.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-kselftest@vger.kernel.org
> Cc: llvm@lists.linux.dev
> Signed-off-by: Mark Brown <broonie@kernel.org>

Thanks for the patches! They LGTM! For the series:
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>

>
> ---
> Mark Brown (6):
>       kselftest/arm64: Fix .pushsection for strings in FP tests
>       kselftest/arm64: Remove redundant _start labels from FP tests
>       kselftest/arm64: Don't pass headers to the compiler as source
>       kselftest/arm64: Initialise current at build time in signal tests
>       kselftest/arm64: Support build of MTE tests with clang
>       kselftest/arm64: Remove spurious comment from MTE test Makefile
>
>  tools/testing/selftests/arm64/fp/assembler.h        |  2 +-
>  tools/testing/selftests/arm64/fp/fp-pidbench.S      |  1 -
>  tools/testing/selftests/arm64/fp/fpsimd-test.S      |  1 -
>  tools/testing/selftests/arm64/fp/sve-test.S         |  1 -
>  tools/testing/selftests/arm64/fp/za-test.S          |  1 -
>  tools/testing/selftests/arm64/mte/Makefile          | 21 +++++++++++++++------
>  tools/testing/selftests/arm64/signal/Makefile       |  8 ++++++--
>  tools/testing/selftests/arm64/signal/test_signals.c |  4 +---
>  8 files changed, 23 insertions(+), 16 deletions(-)
> ---
> base-commit: b7bfaa761d760e72a969d116517eaa12e404c262
> change-id: 20230111-arm64-kselftest-clang-f734b6b0c057
>
> Best regards,
> --
> Mark Brown <broonie@kernel.org>
Catalin Marinas Jan. 20, 2023, 4:59 p.m. UTC | #2
On Thu, 12 Jan 2023 19:51:47 +0000, Mark Brown wrote:
> This series provides a few small build fixes and Makefile tweaks which
> allow us to build the arm64 selftests using clang as well as GCC.  I
> also fixed one minor issue I noticed in the MTE Makefile while doing the
> updates there.
> 
> 

Applied to arm64 (for-next/kselftest), thanks!

[1/6] kselftest/arm64: Fix .pushsection for strings in FP tests
      https://git.kernel.org/arm64/c/aa58ace3499a
[2/6] kselftest/arm64: Remove redundant _start labels from FP tests
      https://git.kernel.org/arm64/c/cd57a6584fe5
[3/6] kselftest/arm64: Don't pass headers to the compiler as source
      https://git.kernel.org/arm64/c/a884f7970e57
[4/6] kselftest/arm64: Initialise current at build time in signal tests
      https://git.kernel.org/arm64/c/6e4b4f0eca88
[5/6] kselftest/arm64: Support build of MTE tests with clang
      https://git.kernel.org/arm64/c/343d59119e77
[6/6] kselftest/arm64: Remove spurious comment from MTE test Makefile
      https://git.kernel.org/arm64/c/89d72c035f88