selftests/bpf: fix compiler warnings in RELEASE=1 mode
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 12 Dec 2023 22:53:43 +0000 (14:53 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 13 Dec 2023 18:27:16 +0000 (10:27 -0800)
commit62d9a969f4a95219c757831e9ad66cd4dd9edee5
treeea7d27642c644b1bdaa949b40d68de7a99b8f79d
parente1ba7f64b192f083b4423644be03bb9e3dc8ae84
selftests/bpf: fix compiler warnings in RELEASE=1 mode

When compiling BPF selftests with RELEASE=1, we get two new
warnings, which are treated as errors. Fix them.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/20231212225343.1723081-1-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/veristat.c
tools/testing/selftests/bpf/xdp_hw_metadata.c