]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Fix CFLAGS for dml2_core_dcn4_calcs.o
authorNathan Chancellor <nathan@kernel.org>
Wed, 24 Apr 2024 18:19:27 +0000 (11:19 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Apr 2024 21:25:06 +0000 (17:25 -0400)
commitaa463cc850c464091cb749317372b70415d3e7d9
tree20f21211e8d768beff253dd245c80d74095ac5fe
parent9f4c6256d0cf887ef64fe87a48a34d50b4bde493
drm/amd/display: Fix CFLAGS for dml2_core_dcn4_calcs.o

-Wframe-larger-than=2048 is a part of both CFLAGS and CFLAGS_REMOVE for
dml2_core_dcn4_calcs.o, which means that it ultimately gets removed
altogether for 64-bit targets, as 2048 is the default FRAME_WARN value
for 64-bit platforms, resulting in no -Wframe-larger-than coverage for
this file.

Remove -Wframe-larger-than from CFLAGS_REMOVE_dml2_core_dcn4_calcs.o and
move to $(frame_warn_flag) for CFLAGS_dml2_core_dcn4_calcs.o, as that
accounts for the fact that -Wframe-larger-than may need to be larger
than 2048 in certain situations, such as when the sanitizers are
enabled.

Fixes: 00c391102abc ("drm/amd/display: Add misc DC changes for DCN401")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/Makefile