Skip to content
Commit a5dab991 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Stefan Agner
Browse files

drm/layerscape: reduce excessive stack usage



The fsl-dcu driver copies a drm_mode_config object to its
stack but then only accesses a single member (dpms_property)
once. The data structure is large enough to trigger a warning
about the amount of kernel stack being used:

drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c: In function 'fsl_dcu_drm_connector_create':
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c:182:1: error: the frame size of 1040 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]

This changes the fsl_dcu_drm_connector_create() function to
only access the drm_mode_config by reference, which is also
more efficient.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 109eee2f

 ("drm/layerscape: Add Freescale DCU DRM driver")
Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
parent fb127b79
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment