mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
Most of the arguments are identical between the two call sites and they
can be accessed through the 'struct vba_vars_st' pointer. This reduces
the total amount of stack space that
dml314_ModeSupportAndSystemConfigurationFull() uses by 112 bytes with
LLVM 16 (1976 -> 1864), helping clear up the following clang warning:
drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_mode_vba_314.c:4020:6: error: stack frame size (2216) exceeds limit (2048) in 'dml314_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than]
void dml314_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib)
^
1 error generated.
Link: https://github.com/ClangBuiltLinux/linux/issues/1710
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Tested-by: Maíra Canal <mairacanal@riseup.net>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
|
||
|---|---|---|
| .. | ||
| calcs | ||
| dcn10 | ||
| dcn20 | ||
| dcn21 | ||
| dcn30 | ||
| dcn31 | ||
| dcn32 | ||
| dcn301 | ||
| dcn302 | ||
| dcn303 | ||
| dcn314 | ||
| dcn321 | ||
| dsc | ||
| dc_features.h | ||
| display_mode_enums.h | ||
| display_mode_lib.c | ||
| display_mode_lib.h | ||
| display_mode_structs.h | ||
| display_mode_vba.c | ||
| display_mode_vba.h | ||
| display_rq_dlg_helpers.c | ||
| display_rq_dlg_helpers.h | ||
| dml1_display_rq_dlg_calc.c | ||
| dml1_display_rq_dlg_calc.h | ||
| dml_inline_defs.h | ||
| dml_logger.h | ||
| Makefile | ||