diff options
| author | Sasha Levin <sashal@kernel.org> | 2026-11-03 18:23:07 -0500 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-11-11 17:20:17 +0530 |
| commit | 6648db997a0b8223fefbee3b4d5391c0d90d0422 (patch) | |
| tree | fe26c2129640242c1490b66740cf3f79a48cab2f /kernel/debug | |
| parent | 126b47221b7b98d83c118781ce724c0515d86d9c (diff) | |
selftests/powerpc: override EMIT_TESTS instead of the emit_tests rule
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>
Acked-by: Michael Ellerman <mpe@kernel.org>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20261103232307.1924618-3-sashal@kernel.org
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
