mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
selftests/bpf: satisfy compiler by having explicit return in btf test
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>
This commit is contained in:
parent
2b62aa59d0
commit
f4c7e88732
1 changed files with 1 additions and 0 deletions
|
@ -5265,6 +5265,7 @@ static size_t get_pprint_mapv_size(enum pprint_mapv_kind_t mapv_kind)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
assert(0);
|
assert(0);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_pprint_mapv(enum pprint_mapv_kind_t mapv_kind,
|
static void set_pprint_mapv(enum pprint_mapv_kind_t mapv_kind,
|
||||||
|
|
Loading…
Reference in a new issue