Re: drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:6193:12: warning: stack frame size (3368) exceeds limit (2048) in 'dml_core_mode_support'

From: Alexander Lobakin
Date: Wed Apr 17 2024 - 07:15:27 EST


From: Pillai, Aurabindo <Aurabindo.Pillai@xxxxxxx>
Date: Wed, 7 Feb 2024 16:09:27 +0000

> [AMD Official Use Only - General]
>
>
> Thank you all,  I'm able to repro the issue and I have a fix. I'll have
> it run through the internal CI and send it out.

I'm facing it again on the latest -rc4 and Clang 19 (the latest master Git):

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/display_mode_core.c:6710:12:
warning: stack frame size (2128) exceeds limit (2048) in
'dml_core_mode_support' [-Wframe-larger-than]
6710 | dml_bool_t dml_core_mode_support(struct display_mode_lib_st
*mode_lib)
| ^
1 warning generated.

Please fix it once and forever somehow, don't abuse the stack =\

Thanks,
Olek