BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next n2 0/1] selftests/bpf: Fix a few tests for GCC related
@ 2024-05-10 18:38 Cupertino Miranda
  2024-05-10 18:38 ` [PATCH bpf-next v2 1/1] selftests/bpf: Fix a few tests for GCC related warnings Cupertino Miranda
  2024-05-13  0:30 ` [PATCH bpf-next n2 0/1] selftests/bpf: Fix a few tests for GCC related patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Cupertino Miranda @ 2024-05-10 18:38 UTC (permalink / raw)
  To: bpf
  Cc: Cupertino Miranda, jose.marchesi, david.faust, Yonghong Song,
	Eduard Zingerman, Andrii Nakryiko

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(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-13  0:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-10 18:38 [PATCH bpf-next n2 0/1] selftests/bpf: Fix a few tests for GCC related Cupertino Miranda
2024-05-10 18:38 ` [PATCH bpf-next v2 1/1] selftests/bpf: Fix a few tests for GCC related warnings Cupertino Miranda
2024-05-13  0:30 ` [PATCH bpf-next n2 0/1] selftests/bpf: Fix a few tests for GCC related patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox