[PATCH] drm/amd/display: Reduce stack size for dml21_ModeSupportAndSystemConfigurationFull

Leo Li sunpeng.li at amd.com
Thu Sep 16 14:34:24 UTC 2021



On 2021-09-14 17:05, Harry Wentland wrote:
> [Why & How]
> With Werror enabled in the kernel we were failing the clang build since
> dml21_ModeSupportAndSystemConfigurationFull's stack frame is 1064 when
> building with clang, and exceeding the default 1024 stack frame limit.
> 
> The culprit seems to be the Pipe struct, so pull the relevant block
> out into its own sub-function.
> 
> Signed-off-by: Harry Wentland<harry.wentland at amd.com>
> Fixes: 3fe617ccafd6 ("Enable '-Werror' by default for all kernel builds")
> Cc: Nick Desaulniers<ndesaulniers at google.com>
> Cc: Linus Torvalds<torvalds at linux-foundation.org>
> Cc:amd-gfx at lists.freedesktop.org
> Cc: Linux Kernel Mailing List<linux-kernel at vger.kernel.org>
> Cc: Arnd Bergmann<arnd at kernel.org>
> Cc: Leo Li<sunpeng.li at amd.com>
> Cc: Alex Deucher<alexander.deucher at amd.com>
> Cc: Christian König<christian.koenig at amd.com>
> Cc: Xinhui Pan<Xinhui.Pan at amd.com>
> Cc: Nathan Chancellor<nathan at kernel.org>
> Cc: Guenter Roeck<linux at roeck-us.net>
> Cc:llvm at lists.linux.dev
> ---

Reviewed-by: Leo Li <sunpeng.li at amd.com>


More information about the amd-gfx mailing list