Re: [Intel-gfx] [PATCH 3/4] drm/i915: introduce range_overflows utility macros

2016-12-13 Thread Chris Wilson
On Tue, Dec 13, 2016 at 08:32:21PM +, Matthew Auld wrote: > 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 > Cc: Chris Wilson > Suggested-by: Chris Wilson > S

[Intel-gfx] [PATCH 3/4] drm/i915: introduce range_overflows utility macros

2016-12-13 Thread Matthew Auld
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 Cc: Chris Wilson Suggested-by: Chris Wilson Signed-off-by: Matthew Auld --- drivers/gpu/drm/i915/i915_drv.h | 12