]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Shrink pipe config checker
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 6 Dec 2016 10:50:20 +0000 (10:50 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 8 Dec 2016 10:12:04 +0000 (10:12 +0000)
commit4e8048f80aa0ab1e05cb4d866922811996f28da4
tree2526ad9e5befb28aa2d2fb0c7dd54bd57c745c7a
parent991914274bdde1e0de28cadc8eca4c736ec3fd07
drm/i915: Shrink pipe config checker

Replace INTEL_ERR_OR_DBG_KMS macro with an intel_err_or_dbg_kms
function to shrink the code and rodata strings.

   text    data     bss     dec     hex filename
1271480   41831    2016 1315327  1411ff i915.ko.0
1265160   41831    2016 1309007  13f94f i915.ko.2

Total of ~6 KiB saving across text and strings.

v2:
 * Annotate the function for printf-style checking.
 * Rename to pipe_config_err. (Chris Wilson)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1481021420-5783-1-git-send-email-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/intel_display.c