]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move WARN_ON/MISSING_CASE macros to i915_utils.h
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 28 Mar 2017 08:45:12 +0000 (08:45 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 29 Mar 2017 10:10:28 +0000 (11:10 +0100)
commitc2f87fcc463ef6498c4725fbea3e0b49771d5571
tree83ef0faea690b81178f80179310c797a2f084a00
parentdd9f7724ee0f8a0590a8f680827bff6194123749
drm/i915: Move WARN_ON/MISSING_CASE macros to i915_utils.h

We can't sometimes use these macros in other headers due to
include and definition order. As i915_utils.h already contains
other helper macros move these macros there.

v2: checkpatch cleanup for WARN() macro.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170328084513.174200-1-michal.wajdeczko@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_utils.h
drivers/gpu/drm/i915/intel_pm.c