diff options
author | Nathan Chancellor <nathan@kernel.org> | 2022-09-16 14:06:57 -0700 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-09-20 12:42:26 -0400 |
commit | ca07f4f5a98b96211a2a8fe51b35c039720be888 (patch) | |
tree | 16646c769d0af25ca0651db07f3c079456d96ecc /drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | |
parent | e9127f5e8f1341cafbc288f96833eadffb570317 (diff) | |
download | linux-ca07f4f5a98b96211a2a8fe51b35c039720be888.tar.bz2 |
drm/amd/display: Reduce number of arguments of dml314's CalculateWatermarksAndDRAMSpeedChangeSupport()
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 240 bytes with
LLVM 16 (2216 -> 1976), 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" <bot@kernelci.org>
Tested-by: MaĆra Canal <mairacanal@riseup.net>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c')
0 files changed, 0 insertions, 0 deletions