[Intel-gfx] [PATCH] drm/i915: Silence compiler warning for seltests/i915_gem_coherency

Matthew Auld matthew.william.auld at gmail.com
Tue Feb 14 16:34:05 UTC 2017


On 14 February 2017 at 14:35, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> In general, the compiler should not be able to detect if we do any
> passes through the test loops:
>
>         In file included from drivers/gpu/drm/i915/i915_gem.c:5029:
>         drivers/gpu/drm/i915/selftests/i915_gem_coherency.c: In function 'igt_gem_coherency':
>         drivers/gpu/drm/i915/selftests/i915_gem_coherency.c:274: error: 'err' may be used uninitialized in this function
>
> Reported-by: kbuild test robot <fengguang.wu at intel.com
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list