]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Reduce stack size for dml21_ModeSupportAndSystemConfigurationFull
authorHarry Wentland <harry.wentland@amd.com>
Mon, 13 Sep 2021 17:32:50 +0000 (13:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Sep 2021 19:17:30 +0000 (15:17 -0400)
commit8c10194737b74889e3f087f125baccc8d508fb30
tree29710684c2eabd56c4197b665f45f65796b0dc01
parent18af77e1f87ec112728559d352cf4916279e6b1d
drm/amd/display: Reduce stack size for dml21_ModeSupportAndSystemConfigurationFull

[Why & How]
With Werror enabled in the kernel we were failing the clang build since
dml21_ModeSupportAndSystemConfigurationFull's stack frame is 1064 when
building with clang, and exceeding the default 1024 stack frame limit.

The culprit seems to be the Pipe struct, so pull the relevant block
out into its own sub-function.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c