[igt-dev] [PATCH i-g-t 00/21] Static analysis: misc cleanups and fixes

Petri Latvala petri.latvala at intel.com
Wed Jan 16 11:20:29 UTC 2019


A random mishmash of changes based on static analysis results.

Cc: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Cc: Imre Deak <imre.deak at intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Cc: Michał Winiarski <michal.winiarski at intel.com>
Cc: Mika Kahola <mika.kahola at intel.com>
Cc: Paul Kocialkowski <paul.kocialkowski at bootlin.com>
Cc: Robert Foss <robert.foss at collabora.com>
Cc: Rodrigo Siqueira <rodrigosiqueiramelo at gmail.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Petri Latvala (21):
  lib: Introduce igt_assume()
  lib/i915/gem_context: Help static analysis with execution flow
  lib/ioctl_wrappers: Help static analysis with execution flow
  lib/igt_kms: Use correct type for calloc
  tests: Use correct type for calloc
  lib: Avoid memcpying 0 bytes from NULL
  overlay: Write out the assumption for kernel-provided data
  benchmarks/wsim: Handle a parse error
  lib/igt_kms: Make igt_display_init require at least one plane
  tests/kms_color: Assert gamma look up table sizes
  lib/igt_kms: Assert that active crtcs have at least one plane
  benchmarks/gem_userptr_benchmark: Correctly free memory
  lib/igt_alsa: Remove dead assignment
  lib/igt_audio: Initialize freq in audio_signal_detect()
  igt_aux: Handle empty pm_test file gracefully
  lib/igt_core: Assert that optarg is present
  lib/igt_core: Handle all failures to read .igtrc
  lib/igt_core: Initialize fds in igt_system_quiet
  lib/igt_kms: Aid static analyzer with the control flow
  lib/igt_x86: Mock-use variable to silence static analysis
  lib/drmtest: Don't read from NULL in set_forced_driver

 benchmarks/gem_userptr_benchmark.c |  5 +++--
 benchmarks/gem_wsim.c              |  8 ++++++++
 lib/drmtest.c                      |  4 +++-
 lib/i915/gem_context.c             |  6 ++++--
 lib/igt_alsa.c                     |  2 --
 lib/igt_audio.c                    |  2 +-
 lib/igt_aux.c                      |  3 +++
 lib/igt_core.c                     | 10 ++++++----
 lib/igt_core.h                     | 15 +++++++++++++++
 lib/igt_kmod.c                     |  1 +
 lib/igt_kms.c                      |  5 +++--
 lib/igt_x86.c                      |  2 ++
 lib/ioctl_wrappers.c               | 12 +++++++++---
 overlay/gpu-perf.c                 |  1 +
 tests/kms_color.c                  | 13 +++++++++++--
 tests/kms_concurrent.c             |  2 +-
 tests/kms_plane_multiple.c         |  2 +-
 17 files changed, 72 insertions(+), 21 deletions(-)

-- 
2.19.1



More information about the igt-dev mailing list