@@ -274,7 +274,7 @@ static u32 dm_vblank_get_counter(struct amdgpu_device *adev, int crtc)
274
274
static int dm_crtc_get_scanoutpos (struct amdgpu_device * adev , int crtc ,
275
275
u32 * vbl , u32 * position )
276
276
{
277
- u32 v_blank_start , v_blank_end , h_position , v_position ;
277
+ u32 v_blank_start = 0 , v_blank_end = 0 , h_position = 0 , v_position = 0 ;
278
278
struct amdgpu_crtc * acrtc = NULL ;
279
279
struct dc * dc = adev -> dm .dc ;
280
280
@@ -848,7 +848,7 @@ static void dm_handle_hpd_work(struct work_struct *work)
848
848
*/
849
849
static void dm_dmub_outbox1_low_irq (void * interrupt_params )
850
850
{
851
- struct dmub_notification notify ;
851
+ struct dmub_notification notify = { 0 } ;
852
852
struct common_irq_params * irq_params = interrupt_params ;
853
853
struct amdgpu_device * adev = irq_params -> adev ;
854
854
struct amdgpu_display_manager * dm = & adev -> dm ;
@@ -7208,7 +7208,7 @@ static int dm_update_mst_vcpi_slots_for_dsc(struct drm_atomic_state *state,
7208
7208
struct amdgpu_dm_connector * aconnector ;
7209
7209
struct dm_connector_state * dm_conn_state ;
7210
7210
int i , j , ret ;
7211
- int vcpi , pbn_div , pbn , slot_num = 0 ;
7211
+ int vcpi , pbn_div , pbn = 0 , slot_num = 0 ;
7212
7212
7213
7213
for_each_new_connector_in_state (state , connector , new_con_state , i ) {
7214
7214
@@ -10615,7 +10615,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
10615
10615
struct dm_crtc_state * dm_old_crtc_state , * dm_new_crtc_state ;
10616
10616
struct drm_dp_mst_topology_mgr * mgr ;
10617
10617
struct drm_dp_mst_topology_state * mst_state ;
10618
- struct dsc_mst_fairness_vars vars [MAX_PIPES ];
10618
+ struct dsc_mst_fairness_vars vars [MAX_PIPES ] = { 0 } ;
10619
10619
10620
10620
trace_amdgpu_dm_atomic_check_begin (state );
10621
10621
0 commit comments