mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
drm/amd/display: Fix DCN5/6 DML2 compilation warnings
[WHY]
A kernel compilation warning was reported caused by upstream of DCN5/6.
[HOW]
Using plain integer as NULL pointer. Assign NULL to the
VActiveLatencyHidingMargin/VActiveLatencyHidingUs pointer members in
dml2_core_dcn5_funcs_mode_programming.c, and pass NULL for the pointer
arguments to calculate_first_second_splitting() in
dml2_pmo_dcn6_stage_optimizers.c.
Fixes: 7f7d7ea1fa ("drm/amd/display: Add new sources for DCN6")
Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit d96880560e9f35ba7f8de1b3f90032c8c3eaea88)
This commit is contained in:
parent
90ce19bd11
commit
ef0e9d1272
|
|
@ -1128,8 +1128,8 @@ static bool dcn5_mode_programming(struct dml2_core_calcs_mode_programming_ex *in
|
|||
CalculateWatermarks_params->USRRetrainingSupport = &mode_lib->mp.USRRetrainingSupport;
|
||||
CalculateWatermarks_params->temp_read_or_ppt_support = mode_lib->mp.temp_read_or_ppt_support;
|
||||
CalculateWatermarks_params->global_temp_read_or_ppt_supported = &mode_lib->mp.global_temp_read_or_ppt_supported;
|
||||
CalculateWatermarks_params->VActiveLatencyHidingMargin = 0;
|
||||
CalculateWatermarks_params->VActiveLatencyHidingUs = 0;
|
||||
CalculateWatermarks_params->VActiveLatencyHidingMargin = NULL;
|
||||
CalculateWatermarks_params->VActiveLatencyHidingUs = NULL;
|
||||
|
||||
dcn5_calculate_watermarks_and_dram_speed_change_support(&mode_lib->scratch, CalculateWatermarks_params);
|
||||
|
||||
|
|
|
|||
|
|
@ -1414,7 +1414,7 @@ static bool find_shift_for_valid_cache_id_assignment(const int *mcache_boundarie
|
|||
success = true;
|
||||
for (pipe_index = 0; pipe_index < pipe_count; pipe_index++) {
|
||||
if (!calculate_first_second_splitting(mcache_boundaries, num_boundaries, *shift,
|
||||
pipe_vp_startx[pipe_index], pipe_vp_endx[pipe_index], 0, 0)) {
|
||||
pipe_vp_startx[pipe_index], pipe_vp_endx[pipe_index], NULL, NULL)) {
|
||||
success = false;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user