Skip to content

samples: bpf: fix build issues with Clang/LLVM

Alexander Lobakin bpf lkml llvm netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2samples: bpf: fix xdp_sample_user.o linking with Clangsamples/bpf/Makefile samples/bpf/Makefile.target+6 -11 reply
2/2samples: bpf: fix 'unknown warning group' build warning on Clangsamples/bpf/xdp_sample_user.h+2 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKumar Kartikeya Dwivedi
1/2A-b
2/2A-b

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 0/2] samples: bpf: fix build issues with Clang/LLVM

Samples, at least XDP ones, can be built only with the compiler used to build the kernel itself.
However, XDP sample infra introduced in Aug'21 was probably tested with GCC/Binutils only as it's not really compilable for now with Clang/LLVM.
These two are trivial fixes addressing this.

Alexander Lobakin (2):
samples: bpf: fix xdp_sample_user.o linking with Clang
samples: bpf: fix 'unknown warning group' build warning on Clang

 samples/bpf/Makefile          | 5 +++++
 samples/bpf/Makefile.target   | 2 +-
 samples/bpf/xdp_sample_user.h | 2 ++
 3 files changed, 8 insertions(+), 1 deletion(-)
Signature · 1 line
2.33.1