]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitde93606c01e2b1bce877f76c498284b0424b1cf8
tree628c739633c5bd42e779ee479b2d41a6714df1dc
parentaf8dbcf77293bece86401c865380b612da3623e3
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