]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Improve i915_inject_probe_error macro
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 12 Dec 2019 12:19:03 +0000 (12:19 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Dec 2019 12:35:17 +0000 (12:35 +0000)
commit3c8437cfe9cff2c8355299d582a358a86920cddb
tree4b843680374fc949e92fbc504f818a0090fb0b27
parentf1c2907b8e7e9d93ed5e931daf42a5dac202d902
drm/i915: Improve i915_inject_probe_error macro

On non-debug builds we were not using i915 param and thus
we may cause "unused variable" warning/error if caller was
not using i915 elsewhere. Let compiler see this param.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191212121903.72524-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/i915_utils.h