diff options
author | 2022-07-14 09:56:47 +0800 | |
---|---|---|
committer | 2022-07-13 23:09:16 -0700 | |
commit | 94bf6aad5dbed1c93618035ec31b37927538c276 (patch) | |
tree | 735072897a5198e35c844c07e4d2dc2ddaf73b43 /arch/arm64 | |
parent | libbpf: Fix the name of a reused map (diff) | |
download | linux-94bf6aad5dbed1c93618035ec31b37927538c276.tar.gz linux-94bf6aad5dbed1c93618035ec31b37927538c276.tar.bz2 linux-94bf6aad5dbed1c93618035ec31b37927538c276.zip |
selftests/bpf: Return true/false (not 1/0) from bool functions
Return boolean values ("true" or "false") instead of 1 or 0 from bool
functions. This fixes the following warnings from coccicheck:
tools/testing/selftests/bpf/progs/test_xdp_noinline.c:407:9-10: WARNING:
return of 0/1 in function 'decap_v4' with return type bool
tools/testing/selftests/bpf/progs/test_xdp_noinline.c:389:9-10: WARNING:
return of 0/1 in function 'decap_v6' with return type bool
tools/testing/selftests/bpf/progs/test_xdp_noinline.c:290:9-10: WARNING:
return of 0/1 in function 'encap_v6' with return type bool
tools/testing/selftests/bpf/progs/test_xdp_noinline.c:264:9-10: WARNING:
return of 0/1 in function 'parse_tcp' with return type bool
tools/testing/selftests/bpf/progs/test_xdp_noinline.c:242:9-10: WARNING:
return of 0/1 in function 'parse_udp' with return type bool
Generated by: scripts/coccinelle/misc/boolreturn.cocci
Suggested-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Linkui Xiao <xiaolinkui@kylinos.cn>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20220714015647.25074-1-xiaolinkui@kylinos.cn
Diffstat (limited to 'arch/arm64')
0 files changed, 0 insertions, 0 deletions