From: Viktor Malik <vmalik@redhat.com>
To: bpf@vger.kernel.org
Cc: Andrii Nakryiko <andrii@kernel.org>,
Eduard Zingerman <eddyz87@gmail.com>,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Kumar Kartikeya Dwivedi <memxor@gmail.com>,
Martin KaFai Lau <martin.lau@linux.dev>,
Song Liu <song@kernel.org>,
Yonghong Song <yonghong.song@linux.dev>,
Jiri Olsa <jolsa@kernel.org>,
Emil Tsalapatis <emil@etsalapatis.com>,
Shuah Khan <shuah@kernel.org>, Eric Biggers <ebiggers@kernel.org>,
Stanislav Fomichev <sdf@fomichev.me>,
Viktor Malik <vmalik@redhat.com>
Subject: [PATCH bpf-next 0/4] selftests/bpf: Fix compilation with RELEASE=1
Date: Wed, 15 Jul 2026 13:21:59 +0200 [thread overview]
Message-ID: <cover.1784112948.git.vmalik@redhat.com> (raw)
When compiling BPF selftests with RELEASE=1 (which most notably adds
-O2), GCC reports several warnings. These are by default treated as
errors and abort the compilation.
This series fixes all of the issues such that selftests can be compiled
with RELEASE=1.
Viktor Malik (4):
selftests/bpf: Check malloc result with ASSERT_NEQ in test_loader
selftests/bpf: Check malloc result with ASSERT_NEQ in test_sha256
selftests/bpf: Silence array bounds warning in global_map_resize
selftests/bpf: Silence maybe-uninitialized compiler warning in
libarena
.../selftests/bpf/libarena/include/libarena/userspace.h | 2 +-
.../testing/selftests/bpf/prog_tests/global_map_resize.c | 8 ++++++--
tools/testing/selftests/bpf/prog_tests/sha256.c | 4 ++--
tools/testing/selftests/bpf/test_loader.c | 2 +-
4 files changed, 10 insertions(+), 6 deletions(-)
--
2.54.0
next reply other threads:[~2026-07-15 11:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 11:21 Viktor Malik [this message]
2026-07-15 11:22 ` [PATCH bpf-next 1/4] selftests/bpf: Check malloc result with ASSERT_NEQ in test_loader Viktor Malik
2026-07-15 11:22 ` [PATCH bpf-next 2/4] selftests/bpf: Check malloc result with ASSERT_NEQ in test_sha256 Viktor Malik
2026-07-15 11:22 ` [PATCH bpf-next 3/4] selftests/bpf: Silence array bounds warning in global_map_resize Viktor Malik
2026-07-15 11:28 ` sashiko-bot
2026-07-15 11:22 ` [PATCH bpf-next 4/4] selftests/bpf: Silence maybe-uninitialized compiler warning in libarena Viktor Malik
2026-07-15 12:10 ` [PATCH bpf-next 0/4] selftests/bpf: Fix compilation with RELEASE=1 Kumar Kartikeya Dwivedi
2026-07-15 13:30 ` Viktor Malik
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=cover.1784112948.git.vmalik@redhat.com \
--to=vmalik@redhat.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=ebiggers@kernel.org \
--cc=eddyz87@gmail.com \
--cc=emil@etsalapatis.com \
--cc=jolsa@kernel.org \
--cc=martin.lau@linux.dev \
--cc=memxor@gmail.com \
--cc=sdf@fomichev.me \
--cc=shuah@kernel.org \
--cc=song@kernel.org \
--cc=yonghong.song@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.