[Intel-gfx] [PATCH] drm/i915/selftests: Silence the compiler for impossible errors

Matthew Auld matthew.william.auld at gmail.com
Tue Oct 17 11:33:19 UTC 2017


On 17 October 2017 at 11:37, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> It should be impossible for these tests not to run due to an empty
> ppgtt, but if it should happen, let's report ENODEV (our typical
> internal error for impossible events).
>
> In file included from drivers/gpu/drm/i915/i915_gem.c:5415:
>    drivers/gpu/drm/i915/selftests/huge_pages.c: In function 'igt_mock_ppgtt_huge_fill':
>>> drivers/gpu/drm/i915/selftests/huge_pages.c:612: error: 'err' may be used uninitialized in this function
>    drivers/gpu/drm/i915/selftests/huge_pages.c: In function 'igt_ppgtt_exhaust_huge':
>    drivers/gpu/drm/i915/selftests/huge_pages.c:1159: error: 'err' may be used uninitialized in this function
>
> Reported-by: kbuild-all at 01.org
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Matthew Auld <matthew.auld at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list