From: Michael Ellerman <mpe@kernel.org>
To: Sasha Levin <sashal@kernel.org>,
Madhavan Srinivasan <maddy@linux.ibm.com>,
Shuah Khan <shuah@kernel.org>
Cc: Nicholas Piggin <npiggin@gmail.com>,
"Christophe Leroy (CS GROUP)" <chleroy@kernel.org>,
"Ritesh Harjani (IBM)" <ritesh.list@gmail.com>,
Shrikanth Hegde <sshegde@linux.ibm.com>,
linuxppc-dev@lists.ozlabs.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests/powerpc: override EMIT_TESTS instead of the emit_tests rule
Date: Wed, 4 Nov 2026 10:34:44 +1100 [thread overview]
Message-ID: <76dffd89-e5b6-46cc-96b1-f68ac6cc87c0@kernel.org> (raw)
In-Reply-To: <20261103232307.1924618-3-sashal@kernel.org>
On 4/11/26 10:23 am, Sasha Levin wrote:
> The powerpc Makefiles include lib.mk and then define their own
> emit_tests rule, so every selftests build that includes powerpc warns,
> on any architecture:
>
> Makefile:60: warning: overriding recipe for target 'emit_tests'
> ../lib.mk:183: warning: ignoring old recipe for target 'emit_tests'
>
> lib.mk used to keep the recipe in an EMIT_TESTS variable that Makefiles
> could override, as they still do with RUN_TESTS, INSTALL_RULE and
> CLEAN. Commit d4e59a536f50 ("selftests: Use runner.sh for emit
> targets") dropped the variable, and commit 58b33e78a317
> ("selftests/powerpc: Fix emit_tests to work with run_kselftest.sh")
> then replaced the powerpc EMIT_TESTS definitions with rules.
>
> Bring EMIT_TESTS back in lib.mk and override it in the powerpc Makefiles
> again. Mark the lib.mk recipe with '+', so that the powerpc sub-makes
> still get the jobserver, as they did when $(MAKE) was in the rule
> itself. The emitted test lists don't change.
>
> Fixes: 58b33e78a317 ("selftests/powerpc: Fix emit_tests to work with run_kselftest.sh")
> Signed-off-by: Sasha Levin <sashal@kernel.org>
> ---
> Checked with "make ARCH=powerpc emit_tests" in
> tools/testing/selftests/powerpc, which lists the same 186 tests as
> before, and with an x86_64 selftests install, whose kselftest-list.txt
> doesn't change. make -j2 --jobserver-style=pipe doesn't warn about the
> jobserver.
>
> tools/testing/selftests/lib.mk | 6 +++++-
> tools/testing/selftests/powerpc/Makefile | 3 ++-
> tools/testing/selftests/powerpc/pmu/Makefile | 3 ++-
> 3 files changed, 9 insertions(+), 3 deletions(-)
Thanks, this is the right fix. I should have done this in 58b33e78a317 but
just wanted to get it fixed without touching lib.mk, which was lazy.
Acked-by: Michael Ellerman <mpe@kernel.org>
cheers
prev parent reply other threads:[~2026-11-03 23:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 23:23 [PATCH] selftests/powerpc: override EMIT_TESTS instead of the emit_tests rule Sasha Levin
2026-11-03 23:34 ` Michael Ellerman [this message]
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=76dffd89-e5b6-46cc-96b1-f68ac6cc87c0@kernel.org \
--to=mpe@kernel.org \
--cc=chleroy@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=npiggin@gmail.com \
--cc=ritesh.list@gmail.com \
--cc=sashal@kernel.org \
--cc=shuah@kernel.org \
--cc=sshegde@linux.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox