]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make PAT macros more robust
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 8 Sep 2017 16:11:30 +0000 (16:11 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Sep 2017 20:12:17 +0000 (21:12 +0100)
commit96ec7c654fea876fa90f41cad7931d4abc6e4158
tree23d50aa60d733b69bb152d3ab3b3ca352355ff0a
parentb70a47376713307b7214e4a22b27c3fc46d6715e
drm/i915: Make PAT macros more robust

Macro params shall be wrapped into () to avoid unexpected results.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170908161130.22424-1-michal.wajdeczko@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/i915_reg.h