OSDN Git Service

drm/amd/display/dc/calcs/dce_calcs: Remove some large variables from the stack
authorLee Jones <lee.jones@linaro.org>
Fri, 19 Mar 2021 08:24:16 +0000 (08:24 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:38:16 +0000 (16:38 -0400)
commit3ca401459cf1b22ad1748f8854e1264b4240cc4e
treeebf2758980e74b266d26d9591fae8c54863fb056
parent2be8989d0fc29659b2b05580dd280a75212c46b7
drm/amd/display/dc/calcs/dce_calcs: Remove some large variables from the stack

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

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

v2: squash in sizeof fix

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: 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