[PATCH] drm/amd/display: Increase frame-larger-than to 4096 in dml Makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
Signed-off-by: Tim Van Patten <timvp@xxxxxxxxxx>
Suggested-by: Raul Rangel <rrangel@xxxxxxxxxx>
---
 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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux