]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Reduce frame size in the bouding box for DCN31/316
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Wed, 1 Jun 2022 14:52:06 +0000 (10:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jun 2022 15:40:31 +0000 (11:40 -0400)
commit381bb4a09ecbc4edf2f436a5537e98a92fcadccb
treea0c4903842f6bd32e381bf71c4ff0b2264f73ea1
parentc21d9d6ed3b4044cf8d4b0f7ce1a23f37648cce2
drm/amd/display: Reduce frame size in the bouding box for DCN31/316

GCC throw warnings for the function dcn31_update_bw_bounding_box and
dcn316_update_bw_bounding_box due to its frame size that looks like
this:

 error: the frame size of 1936 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]

For fixing this issue I dropped an intermadiate variable.

Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Hamza Mahfooz <hamza.mahfooz@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c