]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd/display: Respect CONFIG_FRAME_WARN=0 in DML2
authorNathan Chancellor <nathan@kernel.org>
Wed, 18 Oct 2023 18:45:52 +0000 (11:45 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Oct 2023 19:11:27 +0000 (15:11 -0400)
commit089dbf6a06f1dcaeed4f8b86d619e8d28b235207
tree6ddd4e236ff523865c29f9aa19aba4b3208ecab1
parentb63eae94d28ccdb46c49803c6552876e5c907f4c
drm/amd/display: Respect CONFIG_FRAME_WARN=0 in DML2

display_mode_code.c is unconditionally built with
-Wframe-larger-than=2048, which causes warnings even when
CONFIG_FRAME_WARN has been set to 0, which should show no warnings.

Use the existing $(frame_warn_flag) variable, which handles this
situation. This is basically commit 25f178bbd078 ("drm/amd/display:
Respect CONFIG_FRAME_WARN=0 in dml Makefile") but for DML2.

Fixes: 7966f319c66d ("drm/amd/display: Introduce DML2")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/Makefile