selftests/bpf: satisfy compiler by having explicit return in btf test
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Nov 2023 03:37:44 +0000 (20:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:18 +0000 (20:14 +0000)
commita4c79e7969aff5988722410b016eaf32576ebfe7
tree79430bd6abe7c494fe325539b5ca71e4830995e0
parent9e1913382b47f6f9b9374b07849b24a85c5dcd62
selftests/bpf: satisfy compiler by having explicit return in btf test

[ Upstream commit f4c7e887324f5776eef6e6e47a90e0ac8058a7a8 ]

Some compilers complain about get_pprint_mapv_size() not returning value
in some code paths. Fix with explicit return.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20231102033759.2541186-3-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/prog_tests/btf.c