drm/amd/display: Respect CONFIG_FRAME_WARN=0 in dml Makefile
authorReka Norman <rekanorman@chromium.org>
Tue, 29 Jun 2021 01:27:18 +0000 (11:27 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:05:18 +0000 (00:05 -0400)
commit25f178bbd07817acd43643c97d7e6232daf3c323
treed7356e494c1870f08a638869ab0766647fd34080
parent9ba85914c36c8fed9bf3e8b69c0782908c1247b7
drm/amd/display: Respect CONFIG_FRAME_WARN=0 in dml Makefile

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: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Reka Norman <rekanorman@google.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/Makefile