From: sashiko-bot@kernel.org
To: "Ricardo B. Marlière (SUSE)" <ricardo@marliere.net>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH 2/3] selftests/bpf: Route libarena build artifacts to OUTPUT
Date: Wed, 29 Jul 2026 00:18:27 +0000 [thread overview]
Message-ID: <20260729001828.0FC341F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260728-selftests-bpf_oot-v1-2-05feb15d94db@marliere.net>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The `clean` rule in `selftests/bpf/Makefile` fails to pass the overridden `OUTPUT` path to the `libarena` sub-make, causing out-of-tree builds to leak libarena artifacts.
--
--- Patch [2]: [PATCH 2/3] selftests/bpf: Route libarena build artifacts to OUTPUT ---
commit b4bd21c68fbd2a022ffbf1208ac0ac06aa993754
Author: Ricardo B. Marlière (SUSE) <ricardo@marliere.net>
selftests/bpf: Route libarena build artifacts to OUTPUT
This commit adds OUTPUT support to libarena's Makefile and propagates it
from the parent bpf Makefile. It ensures generated files like BPF objects
and skeleton headers are correctly written into the out-of-tree build
directory.
> diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile
> index b289183475d4c..7d42632f9d424 100644
> --- a/tools/testing/selftests/bpf/Makefile
> +++ b/tools/testing/selftests/bpf/Makefile
[ ... ]
> @@ -826,7 +826,8 @@ LIBARENA_MAKE_ARGS = \
> CLANG="$(CLANG)" \
> BPF_CFLAGS="$(BPF_CFLAGS) $(CLANG_CFLAGS)" \
> BPF_TARGET_ENDIAN="$(BPF_TARGET_ENDIAN)" \
> - Q="$(Q)"
> + Q="$(Q)" \
> + OUTPUT="$(OUTPUT)/libarena"
[ ... ]
> diff --git a/tools/testing/selftests/bpf/libarena/Makefile b/tools/testing/selftests/bpf/libarena/Makefile
> index 5e2ab514805e4..195d5f833186a 100644
> --- a/tools/testing/selftests/bpf/libarena/Makefile
> +++ b/tools/testing/selftests/bpf/libarena/Makefile
[ ... ]
> clean:
> - $(Q)rm -f *.skel.h *.bpf.o *.linked*.o
> + $(Q)rm -f $(OUTPUT)/*.skel.h $(OUTPUT)/*.bpf.o $(OUTPUT)/*.linked*.o
[Severity: Low]
Will this fail to clean the libarena artifacts when building out-of-tree?
In the parent bpf/Makefile, the clean target invokes make without the
LIBARENA_MAKE_ARGS override:
tools/testing/selftests/bpf/Makefile:
clean:
...
$(Q)$(MAKE) -C libarena clean
Since OUTPUT is inherited unmodified from the parent Makefile, it resolves
to the parent directory instead of $(OUTPUT)/libarena/.
Will this cause make clean to inadvertently run rm -f against the parent's
$(OUTPUT) directory, leaving the actual libarena artifacts behind?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260728-selftests-bpf_oot-v1-0-05feb15d94db@marliere.net?part=2
next prev parent reply other threads:[~2026-07-29 0:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-29 0:06 [PATCH 0/3] selftests/bpf: Fixes for out-of-tree builds Ricardo B. Marlière (SUSE)
2026-07-29 0:06 ` [PATCH 1/3] selftests/bpf: Route generated test headers to OUTPUT Ricardo B. Marlière (SUSE)
2026-07-29 0:16 ` sashiko-bot
2026-07-29 0:06 ` [PATCH 2/3] selftests/bpf: Route libarena build artifacts " Ricardo B. Marlière (SUSE)
2026-07-29 0:18 ` sashiko-bot [this message]
2026-07-29 0:06 ` [PATCH 3/3] selftests/bpf: Route test_kmods " Ricardo B. Marlière (SUSE)
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=20260729001828.0FC341F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=ricardo@marliere.net \
--cc=sashiko-reviews@lists.linux.dev \
/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.