kernel_samsung_a53x/drivers/gpu/drm/exynos
Arnd Bergmann 1a95318e87 drm/exynos: fix accidental on-stack copy of exynos_drm_plane
[ Upstream commit 960b537e91725bcb17dd1b19e48950e62d134078 ]

gcc rightfully complains about excessive stack usage in the fimd_win_set_pixfmt()
function:

drivers/gpu/drm/exynos/exynos_drm_fimd.c: In function 'fimd_win_set_pixfmt':
drivers/gpu/drm/exynos/exynos_drm_fimd.c:750:1: error: the frame size of 1032 bytes is larger than 1024 byte
drivers/gpu/drm/exynos/exynos5433_drm_decon.c: In function 'decon_win_set_pixfmt':
drivers/gpu/drm/exynos/exynos5433_drm_decon.c:381:1: error: the frame size of 1032 bytes is larger than 1024 bytes

There is really no reason to copy the large exynos_drm_plane
structure to the stack before using one of its members, so just
use a pointer instead.

Fixes: 6f8ee5c21722 ("drm/exynos: fimd: Make plane alpha configurable")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:07 +01:00
..
exynos7_drm_decon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos5433_drm_decon.c drm/exynos: fix accidental on-stack copy of exynos_drm_plane 2024-11-18 12:13:07 +01:00
exynos_dp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_crtc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_crtc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_dma.c drm/exynos: fix a wrong error checking 2024-11-18 12:12:15 +01:00
exynos_drm_dpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_drv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_drv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_dsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fbdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fbdev.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fimc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fimd.c drm/exynos: fix accidental on-stack copy of exynos_drm_plane 2024-11-18 12:13:07 +01:00
exynos_drm_g2d.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_g2d.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_gem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_gem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_gsc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_ipp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_ipp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_mic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_plane.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_plane.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_rotator.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_scaler.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_vidi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_vidi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_hdmi.c drm/exynos: fix a potential error pointer dereference 2024-11-18 12:12:15 +01:00
exynos_mixer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-decon7.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-decon5433.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-fimc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-gsc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-hdmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-mixer.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-rotator.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-scaler.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-vp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00