[radeon-alex:drm-next-5.10 606/607] drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:272:15: warning: initializer overrides prior initialization of this subobject

kernel test robot lkp at intel.com
Tue Sep 8 20:19:33 UTC 2020


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-5.10
head:   11bc98bd71fe2e0cb572988519e51bca9d58a18a
commit: 02f23f5f7c4bad0bea5ed1685d78280df0295478 [606/607] drm/amdgpu/gmc9: print client id string for mmhub
config: x86_64-randconfig-r031-20200908 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project df63eedef64d715ce1f31843f7de9c11fe1e597f)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout 02f23f5f7c4bad0bea5ed1685d78280df0295478
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
           [32+15][1] = "SDMA1",
                        ^~~~~~~
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:271:15: note: previous initialization is here
           [32+15][1] = "SDMA1",
                        ^~~~~~~
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:383:23: warning: unused variable 'ecc_umc_mcumc_status_addrs' [-Wunused-const-variable]
   static const uint32_t ecc_umc_mcumc_status_addrs[] = {
                         ^
   2 warnings generated.

git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex drm-next-5.10
git checkout 02f23f5f7c4bad0bea5ed1685d78280df0295478
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: 31081 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200909/21948d07/attachment-0001.gz>


More information about the dri-devel mailing list