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)
commitf0d661534fc90da1774e8af7e7faf5043375606f
tree83ef0faea690b81178f80179310c797a2f084a00
parentc276be4f38dfef1968400939aa2e33602d0a7156
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