On Wed, Oct 12, 2016 at 02:33:11PM +0300, ville.syrj...@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrj...@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.syrj...@linux.intel.com>

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

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

Chris Wilson, Intel Open Source Technology Centre
Intel-gfx mailing list

Reply via email to