]> 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)
commitd0c6f01b1831cd8a30acef8022efba548468bd5b
tree628c739633c5bd42e779ee479b2d41a6714df1dc
parent27d401fa52accf722df6fd36cd96ccf0055b330d
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