[radeon-alex:amd-staging-drm-next-vangogh 35/47] drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: warning: initialized field overwritten

kernel test robot lkp at intel.com
Sat Sep 26 03:40:55 UTC 2020


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next-vangogh
head:   6067a749d66ef3815908c86ee0b08733e391955f
commit: a7479b81da768e2a9022f62c03b51020d59eae6e [35/47] drm/amd/powerplay: add vangogh ppt into swSMU
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
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
        git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
        git fetch --no-tags radeon-alex amd-staging-drm-next-vangogh
        git checkout a7479b81da768e2a9022f62c03b51020d59eae6e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha 

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 >>):

   In file included from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:102,
                    from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:26:
>> drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: warning: initialized field overwritten [-Woverride-init]
     646 |  [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
         |                    ^
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:89:2: note: in expansion of macro 'MSG_MAP'
      89 |  MSG_MAP(AllowGfxOff,                    PPSMC_MSG_AllowGfxOff,   1),
         |  ^~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: (near initialization for 'vangogh_message_map[73]')
     646 |  [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
         |                    ^
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:89:2: note: in expansion of macro 'MSG_MAP'
      89 |  MSG_MAP(AllowGfxOff,                    PPSMC_MSG_AllowGfxOff,   1),
         |  ^~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: warning: initialized field overwritten [-Woverride-init]
     646 |  [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
         |                    ^
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:90:2: note: in expansion of macro 'MSG_MAP'
      90 |  MSG_MAP(DisallowGfxOff,                 PPSMC_MSG_DisallowGfxOff,  1),
         |  ^~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h:646:20: note: (near initialization for 'vangogh_message_map[74]')
     646 |  [SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
         |                    ^
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:90:2: note: in expansion of macro 'MSG_MAP'
      90 |  MSG_MAP(DisallowGfxOff,                 PPSMC_MSG_DisallowGfxOff,  1),
         |  ^~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:28:
   drivers/gpu/drm/amd/amdgpu/../pm/inc/smu_v11_0.h:60:43: warning: 'smu11_thermal_policy' defined but not used [-Wunused-const-variable=]
      60 | static const struct smu_temperature_range smu11_thermal_policy[] =
         |                                           ^~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:26:
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:197:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
     197 | static const bool no_system_mem_limit;
         |                   ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:196:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
     196 | static const bool debug_evictions; /* = false */
         |                   ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
     195 | 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/amdgpu.h:67,
                    from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:26:
   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 };
         |                                ^~~~~~~~~~~

vim +646 drivers/gpu/drm/amd/amdgpu/../pm/inc/amdgpu_smu.h

6c339f37f1cd9b9 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h Evan Quan 2020-07-06  644  
6c339f37f1cd9b9 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h Evan Quan 2020-07-06  645  #define MSG_MAP(msg, index, valid_in_vf) \
6c339f37f1cd9b9 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h Evan Quan 2020-07-06 @646  	[SMU_MSG_##msg] = {1, (index), (valid_in_vf)}
6c339f37f1cd9b9 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h Evan Quan 2020-07-06  647  

:::::: The code at line 646 was first introduced by commit
:::::: 6c339f37f1cd9b910f4c04b14079b1663b685c4d drm/amd/powerplay: unify swSMU index to asic specific index mapping

:::::: TO: Evan Quan <evan.quan at amd.com>
:::::: CC: Alex Deucher <alexander.deucher at amd.com>

---
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: 65696 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200926/ede9b00a/attachment-0001.gz>


More information about the dri-devel mailing list