]> 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)
commit2c9db9bd1b064a920e6868ccb3ef4165d25c2796
tree29710684c2eabd56c4197b665f45f65796b0dc01
parentc5c236f07a3943cb506015a2a87d1323c614ea53
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