diff options
author | 2024-05-28 13:51:19 +0200 | |
---|---|---|
committer | 2024-05-29 14:48:31 -0400 | |
commit | 6d438caaeaa1a7fae7b523e7bc4cee262b9f101a (patch) | |
tree | dff2bdb4bff0af217c799023fb78912a1a6c66db /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
parent | drm/amd/display: dynamically allocate dml2_configuration_options structures (diff) | |
download | linux-rng-6d438caaeaa1a7fae7b523e7bc4cee262b9f101a.tar.xz linux-rng-6d438caaeaa1a7fae7b523e7bc4cee262b9f101a.zip |
drm/amd/display: fix graphics_object_id size
The graphics_object_id structure is meant to fit into 32 bits, as it's
passed by value in and out of functions. A recent change increased
the size to 128 bits, so it's now always passed by reference, which
is clearly not intended and ends up producing a compile-time warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_factory.c: In function 'construct_phy':
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_factory.c:743:1: error: the frame size of 1040 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
Add back the bitfields to revert to the original size, while keeping
the 'enum' type change.
Fixes: fec85f995a4b ("drm/amd/display: Fix compiler redefinition warnings for certain configs")
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/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions