2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-17 18:14:34 +08:00
linux-next/drivers/gpu/drm/fsl-dcu
Arnd Bergmann a5dab99139 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: Arnd Bergmann <arnd@arndb.de>
Fixes: 109eee2f2a ("drm/layerscape: Add Freescale DCU DRM driver")
Signed-off-by: Stefan Agner <stefan@agner.ch>
2016-04-25 20:27:18 -07:00
..
fsl_dcu_drm_crtc.c drm/fsl-dcu: use common clock framework for pixel clock divider 2016-04-25 20:27:18 -07:00
fsl_dcu_drm_crtc.h
fsl_dcu_drm_drv.c drm/fsl-dcu: add TCON driver 2016-04-25 20:27:18 -07:00
fsl_dcu_drm_drv.h drm/fsl-dcu: add TCON driver 2016-04-25 20:27:18 -07:00
fsl_dcu_drm_fbdev.c
fsl_dcu_drm_kms.c drm/fsl-dcu: handle initialization errors properly 2016-02-25 16:13:16 -08:00
fsl_dcu_drm_output.h
fsl_dcu_drm_plane.c drm/fsl-dcu: fix alpha blending 2016-02-25 16:13:16 -08:00
fsl_dcu_drm_plane.h
fsl_dcu_drm_rgb.c drm/layerscape: reduce excessive stack usage 2016-04-25 20:27:18 -07:00
fsl_tcon.c drm/fsl-dcu: add TCON driver 2016-04-25 20:27:18 -07:00
fsl_tcon.h drm/fsl-dcu: add TCON driver 2016-04-25 20:27:18 -07:00
Kconfig
Makefile drm/fsl-dcu: add TCON driver 2016-04-25 20:27:18 -07:00