On Fri, Jul 29, 2022 at 4:51 PM Praful Swarnakar <praful.swarnakar@xxxxxxx> wrote: > > 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] Should be fixed with this patch: https://gitlab.freedesktop.org/agd5f/linux/-/commit/1b54a0121dba12af268fb75c413feabdb9f573d4 Alex > > 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 >