drm/i915: Move a few utility macros into a separate header
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jan 2017 15:30:22 +0000 (15:30 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jan 2017 15:34:45 +0000 (15:34 +0000)
commit40b326eefe0ae89fa7e8b272f51382c55563e179
tree0ee9b6d275272334d12f4f93602840e43252d871
parentf3b8f9126a9f3312636780fe83b923f3f63137fb
drm/i915: Move a few utility macros into a separate header

In order to defeat some circular dependencies between headers to allow use
of e.g. range_overflows() in a header, move the simple independent macros
into their own header.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170105153023.30575-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_utils.h [new file with mode: 0644]