From: Sasha Levin <sashal@kernel.org>
To: Shuah Khan <shuah@kernel.org>
Cc: "Sasha Levin" <sashal@kernel.org>,
"Ivan Orlov" <ivan.orlov0322@gmail.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Srinivas Pandruvada" <srinivas.pandruvada@linux.intel.com>,
"Daniel Lezcano" <daniel.lezcano@kernel.org>,
linux-pm@vger.kernel.org, "David Woodhouse" <dwmw@amazon.co.uk>,
"Nageswara R Sastry" <rnsastry@linux.ibm.com>,
kexec@lists.infradead.org, "Willy Tarreau" <w@1wt.eu>,
"Thomas Weißschuh" <linux@weissschuh.net>,
"Wake Liu" <wakel@google.com>,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/5] selftests: target selection fixes for cross and LLVM builds
Date: Wed, 14 Oct 2026 16:01:22 -0400 [thread overview]
Message-ID: <20261014200127.1363472-1-sashal@kernel.org> (raw)
A few suites select their tests from the build host instead of the
target, or depend on the host C library in ways that break cross
builds. This series fixes the ones found while building the selftests
for several architectures:
- prctl and the Intel thermal suites build nothing when CROSS_COMPILE
is set, even for x86, and prctl restricts two generic tests to x86.
- set-anon-vma-name-test fails instead of skipping on kernels built
without CONFIG_ANON_VMA_NAME.
- kexec only recognizes the ppc64le spelling of PowerPC and decides
about the x86-64 jump test from the build host.
- size links a custom _start against the static C library, which
fails on ARM with clang and on LoongArch; it now uses nolibc.
The patches are independent of each other.
Sasha Levin (5):
selftests/prctl: build generated tests for the target architecture
selftests/prctl: skip the anonymous VMA naming test when unsupported
selftests/thermal: allow cross builds of the Intel tests
selftests/kexec: select tests using the target compiler
selftests/size: use nolibc startup and syscall wrappers
tools/testing/selftests/kexec/Makefile | 26 ++++++++-------
tools/testing/selftests/prctl/Makefile | 18 +++++-----
.../selftests/prctl/set-anon-vma-name-test.c | 3 ++
tools/testing/selftests/size/Makefile | 9 ++++-
tools/testing/selftests/size/get_size.c | 33 +++++--------------
.../thermal/intel/power_floor/Makefile | 12 +++----
.../thermal/intel/workload_hint/Makefile | 12 +++----
7 files changed, 52 insertions(+), 61 deletions(-)
base-commit: 4eb2586bd40db27d77cc5b724ca9386ed0c71d53
--
2.53.0
next reply other threads:[~2026-10-14 20:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 20:01 Sasha Levin [this message]
2026-10-14 20:01 ` [PATCH 1/5] selftests/prctl: build generated tests for the target architecture Sasha Levin
2026-10-14 20:01 ` [PATCH 2/5] selftests/prctl: skip the anonymous VMA naming test when unsupported Sasha Levin
2026-10-14 20:01 ` [PATCH 3/5] selftests/thermal: allow cross builds of the Intel tests Sasha Levin
2026-10-14 20:01 ` [PATCH 4/5] selftests/kexec: select tests using the target compiler Sasha Levin
2026-10-14 20:08 ` sashiko-bot
2026-10-14 20:01 ` [PATCH 5/5] selftests/size: use nolibc startup and syscall wrappers Sasha Levin
2026-10-14 20:51 ` Thomas Weißschuh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261014200127.1363472-1-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=daniel.lezcano@kernel.org \
--cc=dwmw@amazon.co.uk \
--cc=ivan.orlov0322@gmail.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=rafael@kernel.org \
--cc=rnsastry@linux.ibm.com \
--cc=shuah@kernel.org \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=w@1wt.eu \
--cc=wakel@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.