Skip to content

Fix few compiler warnings in selftests and libbpf

Andrii Nakryiko bpf 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3selftests/bpf: fix bogus uninitialized variable warningtools/testing/selftests/bpf/network_helpers.c+1 -10 repliesApplied
2/3selftests/bpf: fix few more compiler warningstools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c tools/testing/selftests/bpf/prog_tests/usdt.c tools/testing/selftests/bpf/prog_tests/xdp_synproxy.c+4 -40 repliesApplied
3/3libbpf: remove unnecessary usdt_rel_ip assignmentstools/lib/bpf/usdt.c+2 -40 repliesApplied

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYonghong SongJiri Olsa
SeriesA-b A-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/3] Fix few compiler warnings in selftests and libbpf

Few small patches fixing compiler warning issues detected by Coverity or by building selftests in -O2 mode.

Andrii Nakryiko (3):
selftests/bpf: fix bogus uninitialized variable warning selftests/bpf: fix few more compiler warnings
libbpf: remove unnecessary usdt_rel_ip assignments

 tools/lib/bpf/usdt.c                                       | 6 ++----
 tools/testing/selftests/bpf/network_helpers.c              | 2 +-
 tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c | 4 ++--
 tools/testing/selftests/bpf/prog_tests/usdt.c              | 2 +-
 tools/testing/selftests/bpf/prog_tests/xdp_synproxy.c      | 2 +-
 5 files changed, 7 insertions(+), 9 deletions(-)
Signature · 1 line
2.30.2