drm/i915: Fix GCC 4.4 build issue with __intel_wait_for_register_fw
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 18 Apr 2017 10:52:11 +0000 (11:52 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 19 Apr 2017 11:29:09 +0000 (12:29 +0100)
commit939cf46c3a32c969392c66a6218593a38e1c7bf1
tree91c01c7d76c071b93da88205b2224fbde929567f
parent3396a273851c14634b98bb27be37508b06df94f4
drm/i915: Fix GCC 4.4 build issue with __intel_wait_for_register_fw

Move the BUILD_BUG_ONs for busy-wait duration outside the
_wait_for_atomic macro as discussed on the mailing list.

v2: Simplify the macro by omitting the ret__ local. (Chris Wilson)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Suggested-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Fixes: 1d1a9774e404 ("drm/i915: Extend intel_wait_for_register_fw() with fast timeout")
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170418105211.7089-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/intel_drv.h