diff options
author | Matthew Auld <matthew.auld@intel.com> | 2016-12-13 20:32:21 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-16 21:19:16 +0000 |
commit | 86e61735710902535ebd00decc035f5e129a377e (patch) | |
tree | 05f21a053245ed8728e903fab750fbfc3f6a8dac /drivers/gpu/drm/i915/i915_trace_points.c | |
parent | 7a0499a4b8c2e6850256b1d86c87d2deddce99b0 (diff) |
drm/i915: introduce range_overflows utility macros
In a number places we hand-roll the overflow sanity check for ranges, so
roll that into single macro, conceived by Chris, along with its typed
variant.
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161213203222.32564-3-matthew.auld@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_trace_points.c')
0 files changed, 0 insertions, 0 deletions