diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-02-22 22:33:31 +0100 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2016-04-25 20:27:18 -0700 |
commit | a5dab991398996aaef658641a707ae09e002db6b (patch) | |
tree | ef5dc088ce1b999d60b38e1d77194389936f6abe /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | fb127b7943c9262f5d95f402922d92b9d6c1dad2 (diff) |
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: 109eee2f2a18 ("drm/layerscape: Add Freescale DCU DRM driver")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions