]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: fail build on compilation warning
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 20 Jan 2022 06:05:26 +0000 (22:05 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 21 Jan 2022 05:19:05 +0000 (21:19 -0800)
commit153f4870d056e3c4361da98fac08fe2a79292490
treeb560186ed291a9c1f0f3e16642d11dc98b4cf52e
parent2daa84d5a350d1c8a3cf142d12ca59f475e9829d
selftests/bpf: fail build on compilation warning

It's very easy to miss compilation warnings without -Werror, which is
not set for selftests. libbpf and bpftool are already strict about this,
so make selftests/bpf also treat compilation warnings as errors to catch
such regressions early.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220120060529.1890907-2-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile