[Intel-gfx] [PATCH] drm/i915: Make sure the base lives at offset 0 of all kms objects

Chris Wilson chris at chris-wilson.co.uk
Wed Oct 12 13:55:07 UTC 2016


On Wed, Oct 12, 2016 at 02:33:11PM +0300, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> We occasionally depend on eg. to_intel_crtc(NULL) being NULL as
> well. Sprinkle in some BUILD_BUG_ON()s to make sure we don't
> accidentally change things in a way that would violate this
> assumption.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

bikeshed would be to convert the macros into typechecking inlines and
place the BUILD_BUG_ON there.

Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list