drm/i915/guc: Replace WARN with a DRM_ERROR
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 8 Apr 2019 09:17:01 +0000 (10:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 8 Apr 2019 16:03:45 +0000 (17:03 +0100)
commitbfd04533138427846ab711c68320c71c6275a0a3
tree628c739633c5bd42e779ee479b2d41a6714df1dc
parent99fa4bc26d74e49e3d7d70f29a106943f48924ea
drm/i915/guc: Replace WARN with a DRM_ERROR

Replace the WARN with a simple if() + error message to squech the sparse
warning that entire wait_for() macro was being stringified:

drivers/gpu/drm/i915/intel_guc_submission.c:658:9: error: too long token expansion

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190408091728.20207-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc_submission.c