From: Andrii Nakryiko Date: Thu, 2 Nov 2023 03:37:44 +0000 (-0700) Subject: selftests/bpf: satisfy compiler by having explicit return in btf test X-Git-Tag: v6.6.17~391 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4c79e7969aff5988722410b016eaf32576ebfe7;p=platform%2Fkernel%2Flinux-starfive.git 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 Link: https://lore.kernel.org/r/20231102033759.2541186-3-andrii@kernel.org Signed-off-by: Alexei Starovoitov Signed-off-by: Sasha Levin --- diff --git a/tools/testing/selftests/bpf/prog_tests/btf.c b/tools/testing/selftests/bpf/prog_tests/btf.c index 4e0cdb5..1b8e967f 100644 --- a/tools/testing/selftests/bpf/prog_tests/btf.c +++ b/tools/testing/selftests/bpf/prog_tests/btf.c @@ -5265,6 +5265,7 @@ static size_t get_pprint_mapv_size(enum pprint_mapv_kind_t mapv_kind) #endif assert(0); + return 0; } static void set_pprint_mapv(enum pprint_mapv_kind_t mapv_kind,