BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next v1 0/6] Change bpftool, libbpf, selftests to force GNU89 mode
@ 2021-11-05 23:42 Kumar Kartikeya Dwivedi
  2021-11-05 23:42 ` [PATCH bpf-next v1 1/6] bpftool: Compile using -std=gnu89 Kumar Kartikeya Dwivedi
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Kumar Kartikeya Dwivedi @ 2021-11-05 23:42 UTC (permalink / raw)
  To: bpf; +Cc: Andrii Nakryiko

Fix any remaining instances that fail the build in this mode.  For selftests, we
also need to separate CXXFLAGS from CFLAGS, since adding it to CFLAGS simply
would generate a warning when used with g++.

This also cherry-picks Andrii's patch to fix the instance in libbpf. Also tested
introducing new invalid usage of C99 features.

Andrii Nakryiko (1):
  libbpf: fix non-C89 loop variable declaration in gen_loader.c

Kumar Kartikeya Dwivedi (5):
  bpftool: Compile using -std=gnu89
  libbpf: Compile using -std=gnu89
  selftests/bpf: Fix non-C89 loop variable declaration instances
  selftests/bpf: Switch to non-unicode character in output
  selftests/bpf: Compile using -std=gnu89

 tools/bpf/bpftool/Makefile                           | 2 +-
 tools/lib/bpf/Makefile                               | 1 +
 tools/lib/bpf/gen_loader.c                           | 3 ++-
 tools/testing/selftests/bpf/Makefile                 | 5 ++++-
 tools/testing/selftests/bpf/bench.c                  | 6 +++---
 tools/testing/selftests/bpf/prog_tests/d_path.c      | 4 ++--
 tools/testing/selftests/bpf/prog_tests/timer_mim.c   | 6 +++---
 tools/testing/selftests/bpf/prog_tests/xdp_bonding.c | 4 ++--
 tools/testing/selftests/bpf/test_progs.c             | 2 +-
 9 files changed, 19 insertions(+), 14 deletions(-)

-- 
2.33.1


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

end of thread, other threads:[~2021-11-09 23:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-05 23:42 [PATCH bpf-next v1 0/6] Change bpftool, libbpf, selftests to force GNU89 mode Kumar Kartikeya Dwivedi
2021-11-05 23:42 ` [PATCH bpf-next v1 1/6] bpftool: Compile using -std=gnu89 Kumar Kartikeya Dwivedi
2021-11-05 23:42 ` [PATCH bpf-next v1 2/6] libbpf: fix non-C89 loop variable declaration in gen_loader.c Kumar Kartikeya Dwivedi
2021-11-05 23:42 ` [PATCH bpf-next v1 3/6] libbpf: Compile using -std=gnu89 Kumar Kartikeya Dwivedi
2021-11-05 23:42 ` [PATCH bpf-next v1 4/6] selftests/bpf: Fix non-C89 loop variable declaration instances Kumar Kartikeya Dwivedi
2021-11-05 23:42 ` [PATCH bpf-next v1 5/6] selftests/bpf: Switch to non-unicode character in output Kumar Kartikeya Dwivedi
2021-11-05 23:42 ` [PATCH bpf-next v1 6/6] selftests/bpf: Compile using -std=gnu89 Kumar Kartikeya Dwivedi
2021-11-06 16:33 ` [PATCH bpf-next v1 0/6] Change bpftool, libbpf, selftests to force GNU89 mode Alexei Starovoitov
2021-11-06 20:02   ` Andrii Nakryiko
2021-11-06 23:20     ` Alexei Starovoitov
2021-11-08 22:15       ` Andrii Nakryiko
2021-11-09 21:40         ` Alexei Starovoitov
2021-11-09 23:16           ` Andrii Nakryiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox