mbox series

[bpf-next,n2,0/1] selftests/bpf: Fix a few tests for GCC related

Message ID 20240510183850.286661-1-cupertino.miranda@oracle.com (mailing list archive)
Headers show
Series selftests/bpf: Fix a few tests for GCC related | expand

Message

Cupertino Miranda May 10, 2024, 6:38 p.m. UTC
Hi everyone,

This is version 2 for the proposed patch.
In initial version I rather disabled the warnings from showing for the
particular tests, as I was afraid I would change the test purpose by
changing the code.
This time I corrected the warnings in GCC by adapting the code. 

For jeq_infer_not_null_fail.c, it seems rather more intricate to fix the
warning. In this particular case I left the disabled warning. If you
rather think that it can be fixed I hope you can advise me how to.

Best regards,
Cupertino

Changes from v1:
 - Fixes warnings by actual code changes.

Cc: jose.marchesi@oracle.com
Cc: david.faust@oracle.com
Cc: Yonghong Song <yonghong.song@linux.dev>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>

Cupertino Miranda (1):
  selftests/bpf: Fix a few tests for GCC related warnings.

 .../selftests/bpf/progs/cpumask_failure.c     |  3 --
 .../testing/selftests/bpf/progs/dynptr_fail.c | 12 ++---
 .../bpf/progs/jeq_infer_not_null_fail.c       |  4 ++
 .../selftests/bpf/progs/test_tunnel_kern.c    | 47 +++++++++++--------
 4 files changed, 37 insertions(+), 29 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org May 13, 2024, 12:30 a.m. UTC | #1
Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Fri, 10 May 2024 19:38:49 +0100 you wrote:
> Hi everyone,
> 
> This is version 2 for the proposed patch.
> In initial version I rather disabled the warnings from showing for the
> particular tests, as I was afraid I would change the test purpose by
> changing the code.
> This time I corrected the warnings in GCC by adapting the code.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v2,1/1] selftests/bpf: Fix a few tests for GCC related warnings.
    https://git.kernel.org/bpf/bpf-next/c/5ddafcc377f9

You are awesome, thank you!