Skip to content

Fix warnings with gcc 14

Mauro Carvalho Chehab igt-dev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v11 patch 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4benchmarks: fix calloc calls with inverted argumentsbenchmarks/gem_exec_reloc.c benchmarks/gem_latency.c+4 -41 reply
2/4assembler: fix calloc calls with inverted argumentsassembler/gram.y assembler/main.c+4 -41 reply
3/4tests: fix calloc calls with inverted argumentstests/amdgpu/amd_multidisplay_modeset.c tests/chamelium/kms_chamelium_frames.c tests/intel/gem_exec_alignment.c +7 more+17 -171 reply
4/4lib: fix calloc calls with inverted argumentslib/igt_chamelium.c lib/igt_kms.c+5 -51 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchKamil Konieczny
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH i-g-t v2 0/4] Fix warnings with gcc 14

From: Mauro Carvalho Chehab <[email protected]>

GCC version 14 now checks if arguments for calloc() are at the right order, producing warnings otherwise.

Fix it.

Mauro Carvalho Chehab (4):
benchmarks: fix calloc calls with inverted arguments
assembler: fix calloc calls with inverted arguments
tests: fix calloc calls with inverted arguments
lib: fix calloc calls with inverted arguments

 assembler/gram.y                        | 6 +++---
 assembler/main.c                        | 2 +-
 benchmarks/gem_exec_reloc.c             | 6 +++---
 benchmarks/gem_latency.c                | 2 +-
 lib/igt_chamelium.c                     | 4 ++--
 lib/igt_kms.c                           | 6 +++---
 tests/amdgpu/amd_multidisplay_modeset.c | 2 +-
 tests/chamelium/kms_chamelium_frames.c  | 2 +-
 tests/intel/gem_exec_alignment.c        | 4 ++--
 tests/intel/gem_exec_fair.c             | 4 ++--
 tests/intel/gem_fence_thrash.c          | 4 ++--
 tests/intel/gem_ppgtt.c                 | 4 ++--
 tests/intel/gem_render_tiled_blits.c    | 2 +-
 tests/intel/gem_userptr_blits.c         | 2 +-
 tests/kms_atomic_transition.c           | 6 +++---
 tests/kms_flip.c                        | 4 ++--
 16 files changed, 30 insertions(+), 30 deletions(-)
Signature · 1 line
2.44.0