All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/4] selftests/bpf: Fix compilation with RELEASE=1
@ 2026-07-15 11:21 Viktor Malik
  2026-07-15 11:22 ` [PATCH bpf-next 1/4] selftests/bpf: Check malloc result with ASSERT_NEQ in test_loader Viktor Malik
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Viktor Malik @ 2026-07-15 11:21 UTC (permalink / raw)
  To: bpf
  Cc: Andrii Nakryiko, Eduard Zingerman, Alexei Starovoitov,
	Daniel Borkmann, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis, Shuah Khan,
	Eric Biggers, Stanislav Fomichev, Viktor Malik

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-07-15 13:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15 11:21 [PATCH bpf-next 0/4] selftests/bpf: Fix compilation with RELEASE=1 Viktor Malik
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

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.