• Arnd Bergmann's avatar
    drm/amd/display: fix graphics_object_id size · 6d438caa
    Arnd Bergmann authored
    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: fec85f99 ("drm/amd/display: Fix compiler redefinition warnings for certain configs")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    6d438caa
grph_object_id.h 7.97 KB