[radeon-alex:amd-20.45 2349/2427] drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initialized field overwritten

kernel test robot lkp at intel.com
Tue Dec 15 06:03:06 UTC 2020


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head:   a3950d94b046fb206e58fd3ec717f071c0203ba3
commit: 353801e46ab9f255e45bff91e185580df75787c0 [2349/2427] drm/amdgpu/gmc9: print client id string for mmhub
config: i386-randconfig-r022-20201214 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
        git fetch --no-tags radeon-alex amd-20.45
        git checkout 353801e46ab9f255e45bff91e185580df75787c0
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initialized field overwritten [-Woverride-init]
     272 |  [32+15][1] = "SDMA1",
         |               ^~~~~~~
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: note: (near initialization for 'mmhub_client_ids_arcturus[47][1]')
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:383:23: warning: 'ecc_umc_mcumc_status_addrs' defined but not used [-Wunused-const-variable=]
     383 | static const uint32_t ecc_umc_mcumc_status_addrs[] = {
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
                    from drivers/gpu/drm/amd/backport/backport.h:22,
                    from <command-line>:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:198:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
     198 | static const bool no_system_mem_limit;
         |                   ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:197:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
     197 | static const bool debug_evictions; /* = false */
         |                   ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:196:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
     196 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
         |                  ^~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/display/dc/dc_types.h:33,
                    from drivers/gpu/drm/amd/display/dc/dm_services_types.h:30,
                    from drivers/gpu/drm/amd/include/dm_pp_interface.h:26,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu.h:64,
                    from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
                    from drivers/gpu/drm/amd/backport/backport.h:22,
                    from <command-line>:
   drivers/gpu/drm/amd/display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
      76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
         |                                ^~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
      75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
         |                                ^~~~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
      74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
         |                                ^~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
      73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
         |                                ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
      72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
         |                                ^~~~~~~~~~~

vim +272 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

   242	
   243	static const char *mmhub_client_ids_arcturus[][2] = {
   244		[2][0] = "MP1",
   245		[3][0] = "MP0",
   246		[10][0] = "UTCL2",
   247		[13][0] = "OSS",
   248		[14][0] = "HDP",
   249		[15][0] = "SDMA0",
   250		[32+15][0] = "SDMA1",
   251		[64+15][0] = "SDMA2",
   252		[96+15][0] = "SDMA3",
   253		[128+15][0] = "SDMA4",
   254		[160+11][0] = "JPEG",
   255		[160+12][0] = "VCN",
   256		[160+13][0] = "VCNU",
   257		[160+15][0] = "SDMA5",
   258		[192+10][0] = "UTCL2",
   259		[192+11][0] = "JPEG1",
   260		[192+12][0] = "VCN1",
   261		[192+13][0] = "VCN1U",
   262		[192+15][0] = "SDMA6",
   263		[224+15][0] = "SDMA7",
   264		[0][1] = "DBGU1",
   265		[1][1] = "XDP",
   266		[2][1] = "MP1",
   267		[3][1] = "MP0",
   268		[13][1] = "OSS",
   269		[14][1] = "HDP",
   270		[15][1] = "SDMA0",
   271		[32+15][1] = "SDMA1",
 > 272		[32+15][1] = "SDMA1",
   273		[64+15][1] = "SDMA2",
   274		[96+15][1] = "SDMA3",
   275		[128+15][1] = "SDMA4",
   276		[160+11][1] = "JPEG",
   277		[160+12][1] = "VCN",
   278		[160+13][1] = "VCNU",
   279		[160+15][1] = "SDMA5",
   280		[192+11][1] = "JPEG1",
   281		[192+12][1] = "VCN1",
   282		[192+13][1] = "VCN1U",
   283		[192+15][1] = "SDMA6",
   284		[224+15][1] = "SDMA7",
   285	};
   286	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 39791 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20201215/3ddc10fd/attachment-0001.gz>


More information about the dri-devel mailing list