From 2789339044fb6dfbee0c8cd77e26438b80e333ee Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Thu, 4 Sep 2014 12:27:23 +0100 Subject: [PATCH] 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-format-patch failed