[Intel-gfx] [PATCH] drm/i915: Fix gtt_view asserts

Chris Wilson chris at chris-wilson.co.uk
Tue Aug 28 13:48:22 UTC 2018


Quoting Ville Syrjala (2018-08-28 14:37:23)
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> gcc is too smart for us and doesn't evaluate BUILD_BUG_ON()s in
> unused static inlines. Collect them up in one static inline and
> actually call it to make sure gcc sees it.
> 
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Suggested-by: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the Intel-gfx mailing list