[radeon-alex:drm-next 534/551] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/navi10_ppt.c:2532:35: warning: unused variable 'navi10_i2c_algo'

kernel test robot lkp at intel.com
Wed Oct 28 03:43:34 UTC 2020


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next
head:   2e3a5bc5feeab1ed21f0105f1440a2ff0aef62f9
commit: 19cc89dcb94b47a015fece85db685f1a2563a422 [534/551] drm/amdgpu/swsmu: drop smu i2c bus on navi1x
config: x86_64-randconfig-a004-20201026 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project f2c25c70791de95d2466e09b5b58fc37f6ccd7a4)
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 remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
        git fetch --no-tags radeon-alex drm-next
        git checkout 19cc89dcb94b47a015fece85db685f1a2563a422
        # 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/../pm/swsmu/smu11/navi10_ppt.c:2532:35: warning: unused variable 'navi10_i2c_algo' [-Wunused-const-variable]
   static const struct i2c_algorithm navi10_i2c_algo = {
                                     ^
   1 warning generated.

vim +/navi10_i2c_algo +2532 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/navi10_ppt.c

1bc734759f284eb drivers/gpu/drm/amd/powerplay/navi10_ppt.c Alex Deucher 2020-07-19  2530  
1bc734759f284eb drivers/gpu/drm/amd/powerplay/navi10_ppt.c Alex Deucher 2020-07-19  2531  
1bc734759f284eb drivers/gpu/drm/amd/powerplay/navi10_ppt.c Alex Deucher 2020-07-19 @2532  static const struct i2c_algorithm navi10_i2c_algo = {
1bc734759f284eb drivers/gpu/drm/amd/powerplay/navi10_ppt.c Alex Deucher 2020-07-19  2533  	.master_xfer = navi10_i2c_xfer,
1bc734759f284eb drivers/gpu/drm/amd/powerplay/navi10_ppt.c Alex Deucher 2020-07-19  2534  	.functionality = navi10_i2c_func,
1bc734759f284eb drivers/gpu/drm/amd/powerplay/navi10_ppt.c Alex Deucher 2020-07-19  2535  };
1bc734759f284eb drivers/gpu/drm/amd/powerplay/navi10_ppt.c Alex Deucher 2020-07-19  2536  

:::::: The code at line 2532 was first introduced by commit
:::::: 1bc734759f284eb531dd474c72ce59874649a254 drm/amdgpu/navi1x: add SMU i2c support (v2)

:::::: TO: Alex Deucher <alexander.deucher 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: 40507 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20201028/94ada65e/attachment-0001.gz>


More information about the dri-devel mailing list