diff options
author | Michel Dänzer <mdaenzer@redhat.com> | 2021-12-09 17:46:44 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-12-13 16:34:06 -0500 |
commit | 33c3365ec690c3857ecd579eef75e36a746a8122 (patch) | |
tree | 4eb0e3638d84eeafbb119d39597a84721564d0db /drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c | |
parent | c1e003d3ff6973aa896eef4e6a6d432e6afbff60 (diff) | |
download | linux-stable-33c3365ec690c3857ecd579eef75e36a746a8122.tar.gz linux-stable-33c3365ec690c3857ecd579eef75e36a746a8122.tar.bz2 linux-stable-33c3365ec690c3857ecd579eef75e36a746a8122.zip |
drm/amd/display: Reduce stack size for dml31 UseMinimumDCFCLK
Use the struct display_mode_lib pointer instead of passing lots of large
arrays as parameters by value.
Addresses this warning (resulting in failure to build a RHEL debug kernel
with Werror enabled):
../drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c: In function ‘UseMinimumDCFCLK’:
../drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c:7478:1: warning: the frame size of 2128 bytes is larger than 2048 bytes [-Wframe-larger-than=]
NOTE: AFAICT this function previously had no observable effect, since it
only modified parameters passed by value and doesn't return anything.
Now it may modify some values in struct display_mode_lib passed in by
reference.
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c')
0 files changed, 0 insertions, 0 deletions