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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:23 +0000 (20:14 +0000)
commitafe022417b9341d34bd8b958d80731724a31bd52
tree2ac75190d4aa96400c91a0af3d7093f9fdf73d7d
parent03ca1747949fe1b28692ad9f6a524e2170b529e8
selftests/bpf: fix compiler warnings in RELEASE=1 mode

[ Upstream commit 62d9a969f4a95219c757831e9ad66cd4dd9edee5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/veristat.c
tools/testing/selftests/bpf/xdp_hw_metadata.c