lkml.org 
[lkml]   [2021]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH bpf 0/2] samples: bpf: fix build issues with Clang/LLVM
On Fri, Dec 3, 2021 at 11:55 AM Alexander Lobakin
<alexandr.lobakin@intel.com> wrote:
>
> 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
>

There were conflicts when applying, but luckily I was the one who
caused this conflict in XDP_SAMPLE_CFLAGS, so I just fixed it up
locally and pushed to bpf-next. Thanks.

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

\
 
 \ /
  Last update: 2021-12-07 04:36    [W:0.209 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site