drm/i915: Fix gtt_view asserts
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 28 Aug 2018 13:37:23 +0000 (16:37 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 28 Aug 2018 15:49:33 +0000 (18:49 +0300)
commited11e4158451bf69e1e34b44797d6989d84db60f
tree4b68167570b62f5e481d090e2919bb7f840310b0
parent1895759ee932e47f48b5e87baadc449ffd0853f1
drm/i915: Fix gtt_view asserts

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@chris-wilson.co.uk>
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180828133723.18505-1-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/i915_vma.h