linux_dsm_epyc7002/drivers/gpu/drm/i915/selftests
Chris Wilson 2e0bb5b38f drm/i915/selftests: Silence compiler warning in igt_ctx_exec
The compiler doesn't always spot the guard that object is allocated on
the first pass, leading to:

drivers/gpu/drm/i915/selftests/i915_gem_context.c: warning: 'obj' may be used uninitialized in this function [-Wuninitialized]:  => 370:8

v2: Make it more obvious by setting obj to NULL on the first pass and
any later pass where we need to reallocate.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: 791ff39ae3 ("drm/i915: Live testing for context execution")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
c: <drm-intel-fixes@lists.freedesktop.org> # v4.12-rc1+
Link: http://patchwork.freedesktop.org/patch/msgid/20170523194412.1195-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
(cherry picked from commit ca83d5840c)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2017-05-24 15:34:22 +03:00
..
huge_gem_object.c
huge_gem_object.h
i915_gem_coherency.c
i915_gem_context.c
i915_gem_dmabuf.c
i915_gem_evict.c
i915_gem_gtt.c
i915_gem_object.c
i915_gem_request.c
i915_live_selftests.h
i915_mock_selftests.h
i915_random.c
i915_random.h
i915_selftest.c
i915_vma.c
intel_breadcrumbs.c
intel_hangcheck.c
intel_uncore.c
mock_context.c
mock_context.h
mock_dmabuf.c
mock_dmabuf.h
mock_drm.c
mock_drm.h
mock_engine.c
mock_engine.h
mock_gem_device.c
mock_gem_device.h
mock_gem_object.h
mock_gtt.c
mock_gtt.h
mock_request.c
mock_request.h
scatterlist.c