• Reka Norman's avatar
    drm/amd/display: Respect CONFIG_FRAME_WARN=0 in dml Makefile · 25f178bb
    Reka Norman authored
    Setting CONFIG_FRAME_WARN=0 should disable 'stack frame larger than'
    warnings. This is useful for example in KASAN builds. Make the dml
    Makefile respect this config.
    
    Fixes the following build warnings with CONFIG_KASAN=y and
    CONFIG_FRAME_WARN=0:
    
    drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_mode_vba_30.c:3642:6:
    warning: stack frame size of 2216 bytes in function
    'dml30_ModeSupportAndSystemConfigurationFull' [-Wframe-larger-than=]
    drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c:3957:6:
    warning: stack frame size of 2568 bytes in function
    'dml31_ModeSupportAndSystemConfigurationFull' [-Wframe-larger-than=]
    Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
    Signed-off-by: default avatarReka Norman <rekanorman@google.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    25f178bb
Makefile 4.61 KB