Skip to content

selftests: bpf: support building selftests with clang and fix warnings

Stanislav Fomichev bpf netdev 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4selftests: bpf: tests.h should depend on .c files, not the outputtools/testing/selftests/bpf/Makefile+2 -20 replies
2/4selftests: bpf: fix -Wformat-security warning for flow_dissector_load.ctools/testing/selftests/bpf/flow_dissector_load.c+1 -10 replies
3/4selftests: bpf: fix -Wformat-invalid-specifier for bpf_obj_id.ctools/testing/selftests/bpf/prog_tests/bpf_obj_id.c+4 -40 replies
4/4selftests: bpf: remove duplicate .flags initialization in ctx_skb.ctools/testing/selftests/bpf/verifier/ctx_skb.c+0 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/4] selftests: bpf: support building selftests with clang and fix warnings

This series contains small fixes to make bpf selftests compile cleanly with clangs. All of them are not real problems, but it's nice to have an option to use clang for the tests themselves.

Stanislav Fomichev (4):
selftests: bpf: tests.h should depend on .c files, not the output
selftests: bpf: fix -Wformat-security warning for
flow_dissector_load.c
selftests: bpf: fix -Wformat-invalid-specifier for bpf_obj_id.c
selftests: bpf: remove duplicate .flags initialization in ctx_skb.c

 tools/testing/selftests/bpf/Makefile                | 4 ++--
 tools/testing/selftests/bpf/flow_dissector_load.c   | 2 +-
 tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c | 8 ++++----
 tools/testing/selftests/bpf/verifier/ctx_skb.c      | 1 -
 4 files changed, 7 insertions(+), 8 deletions(-)
Signature · 1 line
2.21.0.392.gf8f6787159e-goog