[xilinx-xlnx:xlnx_rebase_v5.15_LTS 153/1343] drivers/i2c/busses/i2c-xiic.c:1134:39: warning: unused variable 'xiic_2_00'

From: kernel test robot <hidden>
Date: 2022-12-03 08:17:34
Also in: llvm, oe-kbuild-all

Hi Raviteja,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS
head:   68faea806ab8217fa45ba40ab000a3038c4b5192
commit: 441d1827ed31ab142ec4531999461466c6866f1d [153/1343] i2c: xiic: Switch to Xiic standard mode for i2c-read
config: hexagon-randconfig-r035-20221201
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6e4cea55f0d1104408b26ac574566a0e4de48036)
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
        # https://github.com/Xilinx/linux-xlnx/commit/441d1827ed31ab142ec4531999461466c6866f1d
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS
        git checkout 441d1827ed31ab142ec4531999461466c6866f1d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/i2c/busses/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot [off-list ref]

All warnings (new ones prefixed by >>):
quoted
drivers/i2c/busses/i2c-xiic.c:1134:39: warning: unused variable 'xiic_2_00' [-Wunused-const-variable]
   static const struct xiic_version_data xiic_2_00 = {
                                         ^
   1 warning generated.


vim +/xiic_2_00 +1134 drivers/i2c/busses/i2c-xiic.c

  1133	
1134	static const struct xiic_version_data xiic_2_00 = {
  1135		.quirks = DYNAMIC_MODE_READ_BROKEN_BIT,
  1136	};
  1137	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help