drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the...
authorLee Jones <lee.jones@linaro.org>
Fri, 19 Mar 2021 08:24:15 +0000 (08:24 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:38:12 +0000 (16:38 -0400)
commit2be8989d0fc29659b2b05580dd280a75212c46b7
treec6f906c88dac164eed673fda4458749e530f95f0
parent2b8d0f1f3e501149f6df7975232f9e09e42680d2
drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the heap

Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘calculate_bandwidth’:
 drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:2016:1: warning: the frame size of 1216 bytes is larger than 1024 bytes [-Wframe-larger-than=]

Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Leo Li <sunpeng.li@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c