2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/amd/display/dc/dml2
Nathan Chancellor 820ccf8cb2 drm/amd/display: Respect user's CONFIG_FRAME_WARN more for dml files
Currently, there are several files in drm/amd/display that aim to have a
higher -Wframe-larger-than value to avoid instances of that warning with
a lower value from the user's configuration. However, with the way that
it is currently implemented, it does not respect the user's request via
CONFIG_FRAME_WARN for a higher stack frame limit, which can cause pain
when new instances of the warning appear and break the build due to
CONFIG_WERROR.

Adjust the logic to switch from a hard coded -Wframe-larger-than value
to only using the value as a minimum clamp and deferring to the
requested value from CONFIG_FRAME_WARN if it is higher.

Suggested-by: Harry Wentland <harry.wentland@amd.com>
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Closes: https://lore.kernel.org/2025013003-audience-opposing-7f95@gregkh/
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-02-04 17:47:10 -05:00
..
dml21 drm/amd/display: Fix out-of-bound accesses 2025-02-03 12:12:04 -05:00
cmntypes.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
display_mode_core_structs.h drm/amd/display: DML21 Reintegration For Various Fixes 2024-12-18 12:19:34 -05:00
display_mode_core.c drm/amd/display: mark static functions noinline_for_stack 2025-01-24 09:53:12 -05:00
display_mode_core.h drm/amd/display: Add missing DML2 var helpers 2024-05-20 16:20:24 -04:00
display_mode_lib_defines.h drm/amd/display: add dwb support to dml2 2024-04-09 22:16:08 -04:00
display_mode_util.c drm/amd/display: DML21 Reintegration For Various Fixes 2024-12-18 12:19:34 -05:00
display_mode_util.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml2_dc_resource_mgmt.c drm/amd/display: update pipe selection policy to check head pipe 2024-11-20 09:38:19 -05:00
dml2_dc_resource_mgmt.h drm/amd/display: Add some forward declarations 2024-03-20 13:37:36 -04:00
dml2_dc_types.h drm/amd/display: Refactor dc_state interface 2023-12-19 14:59:02 -05:00
dml2_internal_types.h drm/amd/display: fix graphics hang in multi-display mst case 2024-09-02 11:38:30 -04:00
dml2_mall_phantom.c drm/amd/display: fix page fault due to max surface definition mismatch 2024-12-19 17:38:19 -05:00
dml2_mall_phantom.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml2_policy.c Revert "drm/amd/display: update DML2 policy EnhancedPrefetchScheduleAccelerationFinal DCN35" 2024-10-28 16:32:42 -04:00
dml2_policy.h
dml2_translation_helper.c drm/amd/display: Fix out-of-bound accesses 2025-02-03 12:12:04 -05:00
dml2_translation_helper.h drm/amd/display: fix graphics hang in multi-display mst case 2024-09-02 11:38:30 -04:00
dml2_utils.c drm/amd/display: fix graphics hang in multi-display mst case 2024-09-02 11:38:30 -04:00
dml2_utils.h drm/amd/display: add dwb support to dml2 2024-04-09 22:16:08 -04:00
dml2_wrapper.c drm/amd/display: DML2.1 Post-Si Cleanup 2025-01-10 12:00:34 -05:00
dml2_wrapper.h drm/amd/display: Force enable 3DLUT DMA check for dcn401 in DML 2024-08-06 11:11:02 -04:00
dml_assert.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml_depedencies.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml_display_rq_dlg_calc.c drm/amd/display: delete legacy code 2024-12-18 12:19:57 -05:00
dml_display_rq_dlg_calc.h
dml_logging.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
Makefile drm/amd/display: Respect user's CONFIG_FRAME_WARN more for dml files 2025-02-04 17:47:10 -05:00