bpftool, selftests/hid/bpf: Fix 29 clang warnings
authorJohn Hubbard <jhubbard@nvidia.com>
Sun, 5 May 2024 23:00:54 +0000 (16:00 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 6 May 2024 21:39:36 +0000 (14:39 -0700)
commit41b307ad756e1b7b618bf9d9c1cce3595705ede4
treea41194186c6f374dc9093246364c1b0ed031553d
parente549b39a0ab8880d7ae6c6495b00fc1cb8f36174
bpftool, selftests/hid/bpf: Fix 29 clang warnings

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@kernel.org>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Quentin Monnet <qmo@kernel.org>
Link: https://lore.kernel.org/bpf/20240505230054.13813-1-jhubbard@nvidia.com
tools/bpf/bpftool/Makefile