Skip to content

Generate NULL in vmlinux.h

Andrii Nakryiko bpf netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v14 patches 1 replySuperseded

Changes in v2 from the cover letter

- fix few typos and wrong copy/paste;
- fix #pragma push -> pop.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bpftool: generate NULL definition in vmlinux.htools/bpf/bpftool/btf.c+2 -02 replies
2/4selftests/bpf: drop custom NULL #define in skb_pkt_end selftesttools/testing/selftests/bpf/progs/skb_pkt_end.c+0 -10 replies
3/4selftests/bpf: treat compilation warnings as errorstools/testing/selftests/bpf/Makefile+2 -20 replies
4/4bpftool: treat compilation warnings as errorstools/bpf/bpftool/Makefile tools/bpf/bpftool/jit_disasm.c+5 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/4] Generate NULL in vmlinux.h

Generate NULL definition as part of vmlinux.h. This is a pretty common and unfortunate annoyance that most users of vmlinux.h have to deal with. Patch #2 drops such custom NULL definition in one of the selftests. Patches #3 and #4 make bpftool and selftests compilations stricter by treating warnings as errors.

v1->v2:
- fix few typos and wrong copy/paste;
- fix #pragma push -> pop.

Andrii Nakryiko (4):
bpftool: generate NULL definition in vmlinux.h selftests/bpf: drop custom NULL #define in skb_pkt_end selftest selftests/bpf: treat compilation warnings as errors
bpftool: treat compilation warnings as errors

 tools/bpf/bpftool/Makefile                      | 3 ++-
 tools/bpf/bpftool/btf.c                         | 2 ++
 tools/bpf/bpftool/jit_disasm.c                  | 3 +++
 tools/testing/selftests/bpf/Makefile            | 4 ++--
 tools/testing/selftests/bpf/progs/skb_pkt_end.c | 1 -
 5 files changed, 9 insertions(+), 4 deletions(-)
Signature · 1 line
2.30.2