diff options
author | 2024-05-28 13:51:20 +0200 | |
---|---|---|
committer | 2024-05-29 14:48:31 -0400 | |
commit | 669d6b078ed8991266da4c68c46ce7d2e942c474 (patch) | |
tree | e0e9741678eb51f40be2b9543f9f48fa3d2adca1 /drivers/gpu/drm/amd/amdgpu | |
parent | drm/amd/display: fix graphics_object_id size (diff) | |
download | linux-rng-669d6b078ed8991266da4c68c46ce7d2e942c474.tar.xz linux-rng-669d6b078ed8991266da4c68c46ce7d2e942c474.zip |
drm/amd/display: avoid large on-stack structures
Putting excessively large objects on a function stack causes
a warning about possibly overflowing the 8KiB of kernel stack:
drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn401/dcn401_resource.c: In function 'dcn401_update_bw_bounding_box':
drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn401/dcn401_resource.c:1599:1: error: the frame size of 1196 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
1599 | }
| ^
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_state.c: In function 'dc_state_create':
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_state.c:221:1: error: the frame size of 1196 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
221 | }
| ^
Use dynamic allocation instead.
Fixes: e779f4587f61 ("drm/amd/display: Add handling for DC power mode")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions