]> git.ipfire.org Git - thirdparty/kernel/stable.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)
commita62427ef9b55d4b5aec2b08dc9b2d9719572bf57
tree29710684c2eabd56c4197b665f45f65796b0dc01
parent1f2fcc8183e372b5d8f0e00d3e42e5d6a4a6a336
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