Re: [PATCH] selftests/prctl: select the tests by ARCH alone

From: Andrew Morton

Date: Wed Nov 04 2026 - 18:13:13 EST


On Wed, 4 Nov 2026 14:36:39 -0500 Sasha Levin <sashal@xxxxxxxxxx> wrote:

> The prctl tests are only built for x86, and only when CROSS_COMPILE is
> not set. In every other case the Makefile defines no rules, so building
> or installing the suite fails:
>
> make[1]: *** No targets. Stop.
>
> TuxMake sets CROSS_COMPILE for every build, native x86_64 ones
> included, so CI systems that use it, such as KernelCI, see prctl fail
> on every architecture and never build its tests.
>
> Like breakpoints, ipc and x86, decide by ARCH alone whether the tests
> are built, and give the Makefile empty targets on other architectures,
> as sparc64 and drivers/s390x/uvdevice do, so that the suite builds and
> installs nothing there.

Well that's annoying, but...

Rather than continuing to make this selftest x86-only, wouldn't it be
better to fix things up so the other architectures also benefit?

In fact someone proposed doing that just last month. Oh, it was you ;)

https://lore.kernel.org/20261014200127.1363472-1-sashal@xxxxxxxxxx

what happened to that?