[Intel-gfx] [PATCH] drm/i915/selftests: Silence compiler warning in igt_ctx_exec

Matthew Auld matthew.william.auld at gmail.com
Mon May 22 14:38:19 UTC 2017


On 22 May 2017 at 13:21, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> 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
>
> Reported-by: Geert Uytterhoeven <geert at linux-m68k.org>
> Fixes: 791ff39ae32a ("drm/i915: Live testing for context execution")
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Cc: Matthew Auld <matthew.auld at intel.com>
> c: <drm-intel-fixes at lists.freedesktop.org> # v4.12-rc1+
Cc: <drm-intel-fixes at lists.freedesktop.org> # v4.12-rc1+

Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list