aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2022-09-16 21:06:58 +0000
committerAlex Deucher <[email protected]>2022-09-20 16:42:32 +0000
commit25ea501ed85dc3c224db73fb79d38b6109c1ad99 (patch)
tree44c882246d8f23e4b9ba2e5ec35dd7ee1b601a51 /drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
parentdrm/amd/display: Reduce number of arguments of dml314's CalculateWatermarksAn... (diff)
downloadkernel-25ea501ed85dc3c224db73fb79d38b6109c1ad99.tar.gz
kernel-25ea501ed85dc3c224db73fb79d38b6109c1ad99.zip
drm/amd/display: Reduce number of arguments of dml314's CalculateFlipSchedule()
Most of the arguments are identical between the two call sites and they can be accessed through the 'struct vba_vars_st' pointer. This reduces the total amount of stack space that dml314_ModeSupportAndSystemConfigurationFull() uses by 112 bytes with LLVM 16 (1976 -> 1864), helping clear up the following clang warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_mode_vba_314.c:4020:6: error: stack frame size (2216) exceeds limit (2048) in 'dml314_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] void dml314_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) ^ 1 error generated. Link: https://github.com/ClangBuiltLinux/linux/issues/1710 Reported-by: "kernelci.org bot" <[email protected]> Tested-by: MaĆ­ra Canal <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c')
0 files changed, 0 insertions, 0 deletions