[radeon-alex:amd-staging-drm-next 4/5] drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initialized field overwritten

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   d57d5c9c09cfb661eb0e8a9c41020aa71771dd7d
commit: e2ef6329fc53a026198a3788db088f85820690b6 [4/5] drm/amdgpu/gmc9: print client id string for mmhub
config: i386-randconfig-a012-20200902 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        git checkout e2ef6329fc53a026198a3788db088f85820690b6
        # 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@xxxxxxxxx>

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/amdgpu/gmc_v9_0.c:29:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
     195 | static const bool no_system_mem_limit;
         |                   ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
     194 | static const bool debug_evictions; /* = false */
         |                   ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
     193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
         |                  ^~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
                    from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu.h:65,
                    from drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:29:
   drivers/gpu/drm/amd/amdgpu/../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/amdgpu/../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/amdgpu/../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/amdgpu/../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/amdgpu/../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 };
         |                                ^~~~~~~~~~~

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-staging-drm-next
git checkout e2ef6329fc53a026198a3788db088f85820690b6
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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip

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

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux