Re: [PATCH v2] bpftool, selftests/hid/bpf: fix 29 clang warnings

From: Quentin Monnet
Date: Sun May 05 2024 - 20:00:36 EST


On 06/05/2024 00:00, John Hubbard wrote:
> When building either tools/bpf/bpftool, or tools/testing/selftests/hid,
> (the same Makefile is used for these), clang generates many instances of
> the following:
>
> "clang: warning: -lLLVM-17: 'linker' input unused"
>
> Quentin points out that the LLVM version is only required in $(LIBS),
> not in $(CFLAGS), so the fix is to remove it from CFLAGS.
>
> Suggested-by: Quentin Monnet <qmo@xxxxxxxxxx>
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>
Acked-by: Quentin Monnet <qmo@xxxxxxxxxx>

Thank you!