From: Damien Lespiau Date: Thu, 4 Sep 2014 11:27:23 +0000 (+0100) Subject: drm/i915: Rewrite ABS_DIFF() in a safer manner X-Git-Tag: fixes-against-v3.18-rc2~73^2~32^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2789339044fb6dfbee0c8cd77e26438b80e333ee;p=pandora-kernel.git drm/i915: Rewrite ABS_DIFF() in a safer manner The new version of the macro does a few things better: - protect the arguments, - only evaluate the arguments once, - check that the arguments are of the same type, Change LC_FREQ_2K to be a unsigned 64bit constant and removed the '()' from the caller as a result. Signed-off-by: Damien Lespiau Reviewed-by: Jani Nikula Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed