[Intel-gfx] [PATCH] drm/i915/gt: Rearrange code to silence compiler
Matthew Auld
matthew.auld at intel.com
Mon Feb 17 10:08:49 UTC 2020
On 17/02/2020 09:58, Chris Wilson wrote:
> Without selftests enabled, I915_SELFTEST_ONLY becomes a dummy,
> generating a bare '0'. This causes the compiler to complain about a
> useless line, and while we could use I915_SELFTEST_DECLARE instead, it
> is a bit messier. Move the selftest-only code to a helper and make that
> conditional on having selftests enabled.
>
> 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