From: Daniel Vetter Date: Mon, 8 Dec 2014 15:30:00 +0000 (+0100) Subject: drm/i915: Check mask/bit helper functions X-Git-Tag: fixes-v4.0-rc1~91^2~43^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15a17aae5f803551981a7acc6a4058b247a7452c;p=pandora-kernel.git drm/i915: Check mask/bit helper functions After a bit of irc discussion we've concluded that it would be prudent to check that callers use the mask/enable paramters correctly. So add a WARN_ON. Spurred by Damien's bugfix which added _MASKED_FIELD. v2: We use WARN_ON(1) a lot to catch default cases in switch blocks which should always be extended. So this doesn't work really. Dunno why gcc only started complaining when I've moved the WARN out of the static inline helper to address a feedback from Jani. Cc: Damien Lespiau Cc: Chris Wilson Cc: Jani Nikula Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed