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

Petri Latvala
2019-01-16T11:21:06Z

A random mishmash of changes based on static analysis results.

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