[PATCH] drm/amd/display: Increase frame-larger-than to 4096 in dml Makefile
Praful Swarnakar
praful.swarnakar at amd.com
Fri Jul 29 20:50:28 UTC 2022
When enabling kcov and debug kernel configuration, stack frame size
exceeds set limit, resulting into build error.
Fixes the following build warnings:
drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c:3955:6:
error: stack frame size (2344) exceeds limit (2048) in
'dml31_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than]
Fixes: 5679b6e2c887 ("drm/amd/display: Enable building new display engine with KCOV enabled")
Signed-off-by: Praful Swarnakar <praful.swarnakar at amd.com>
Signed-off-by: Tim Van Patten <timvp at google.com>
Suggested-by: Raul Rangel <rrangel at google.com>
---
drivers/gpu/drm/amd/display/dc/dml/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile
index 359f6e9a1da0..42b1df843a6c 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/Makefile
+++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile
@@ -51,7 +51,7 @@ endif
endif
ifneq ($(CONFIG_FRAME_WARN),0)
-frame_warn_flag := -Wframe-larger-than=2048
+frame_warn_flag := -Wframe-larger-than=4096
endif
CFLAGS_$(AMDDALPATH)/dc/dml/display_mode_lib.o := $(dml_ccflags)
--
2.25.1
More information about the amd-gfx
mailing list