Messages in this thread | | | Subject | Re: [PATCH bpf-next] selftests/bpf: Return true/false (not 1/0) from bool functions | From | patchwork-bot+netdevbpf@kernel ... | Date | Thu, 14 Jul 2022 06:30:13 +0000 |
| |
Hello:
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <andrii@kernel.org>:
On Thu, 14 Jul 2022 09:56:47 +0800 you wrote: > From: Linkui Xiao <xiaolinkui@kylinos.cn> > > 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 > > [...]
Here is the summary with links: - [bpf-next] selftests/bpf: Return true/false (not 1/0) from bool functions https://git.kernel.org/bpf/bpf-next/c/94bf6aad5dbe
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| |