tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.18-wip
head:   92fb37464bd2b759d74f33c3b90a27575601745d
commit: b5f9f0f4bd3b061c10899d66a9d8d7d8e7e6bbd0 [259/261] drm/amd/powerplay: 
add smumgr support for VEGAM (v2)
config: i386-randconfig-a0-201816 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout b5f9f0f4bd3b061c10899d66a9d8d7d8e7e6bbd0
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c: In function 
'vegam_program_memory_timing_parameters':
>> drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1369:9: 
>> warning: missing braces around initializer [-Wmissing-braces]
     struct SMU75_Discrete_MCArbDramTimingTable arb_regs = {0};
            ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1369:9: 
warning: (near initialization for 'arb_regs.entries') [-Wmissing-braces]

vim +1369 drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c

  1364  
  1365  static int vegam_program_memory_timing_parameters(struct pp_hwmgr 
*hwmgr)
  1366  {
  1367          struct smu7_hwmgr *hw_data = (struct smu7_hwmgr 
*)(hwmgr->backend);
  1368          struct vegam_smumgr *smu_data = (struct vegam_smumgr 
*)(hwmgr->smu_backend);
> 1369          struct SMU75_Discrete_MCArbDramTimingTable arb_regs = {0};
  1370          uint32_t i, j;
  1371          int result = 0;
  1372  
  1373          for (i = 0; i < hw_data->dpm_table.sclk_table.count; i++) {
  1374                  for (j = 0; j < hw_data->dpm_table.mclk_table.count; 
j++) {
  1375                          result = 
vegam_populate_memory_timing_parameters(hwmgr,
  1376                                          
hw_data->dpm_table.sclk_table.dpm_levels[i].value,
  1377                                          
hw_data->dpm_table.mclk_table.dpm_levels[j].value,
  1378                                          &arb_regs.entries[i][j]);
  1379                          if (result)
  1380                                  return result;
  1381                  }
  1382          }
  1383  
  1384          result = smu7_copy_bytes_to_smc(
  1385                          hwmgr,
  1386                          smu_data->smu7_data.arb_table_start,
  1387                          (uint8_t *)&arb_regs,
  1388                          sizeof(SMU75_Discrete_MCArbDramTimingTable),
  1389                          SMC_RAM_END);
  1390          return result;
  1391  }
  1392  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to