]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Tighten mmio arrays for MIPI_PORT
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Feb 2017 14:55:19 +0000 (14:55 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 1 Mar 2017 09:45:43 +0000 (09:45 +0000)
commit071005e3bcda478f675b01b15f96e8ee19fbc5ec
treebdf0a1c44644978f69d2300f324749e96b8df337
parent90ac0eb6e0c55b16ba7c542e602cdc2accb14957
drm/i915: Tighten mmio arrays for MIPI_PORT

drivers/gpu/drm/i915/intel_dsi.c: In function ‘intel_dsi_prepare’:
drivers/gpu/drm/i915/intel_dsi.c:1308:1: error: the frame size of 2488 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]

which is caused by the compiling expanding every _MIPI_PORT into an
on-stack array of u32[3] at every callsite. Not sure why only one
machine/compiler appears susceptible, but with a minor tweak to _MIPI_PORT
we can defer the error until later.

This is a partial revert of commit 5af5829eeed0 ("drm/i915: use variadic
macros and arrays to choose port/pipe based registers") for a particular
bad offender.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170228145519.18012-1-chris@chris-wilson.co.uk
Acked-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_reg.h