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

From: Leo Li
Date: Thu Sep 16 2021 - 10:34:40 EST




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@xxxxxxx>
Fixes: 3fe617ccafd6 ("Enable '-Werror' by default for all kernel builds")
Cc: Nick Desaulniers<ndesaulniers@xxxxxxxxxx>
Cc: Linus Torvalds<torvalds@xxxxxxxxxxxxxxxxxxxx>
Cc:amd-gfx@xxxxxxxxxxxxxxxxxxxxx
Cc: Linux Kernel Mailing List<linux-kernel@xxxxxxxxxxxxxxx>
Cc: Arnd Bergmann<arnd@xxxxxxxxxx>
Cc: Leo Li<sunpeng.li@xxxxxxx>
Cc: Alex Deucher<alexander.deucher@xxxxxxx>
Cc: Christian König<christian.koenig@xxxxxxx>
Cc: Xinhui Pan<Xinhui.Pan@xxxxxxx>
Cc: Nathan Chancellor<nathan@xxxxxxxxxx>
Cc: Guenter Roeck<linux@xxxxxxxxxxxx>
Cc:llvm@xxxxxxxxxxxxxxx
---

Reviewed-by: Leo Li <sunpeng.li@xxxxxxx>