Messages in this thread | | | Date | Thu, 17 Feb 2022 15:06:09 +0800 | From | kernel test robot <> | Subject | drivers/fpga/microchip-spi.c:341:34: warning: unused variable 'mpf_of_ids' |
| |
tree: https://github.com/0day-ci/linux/commits/UPDATE-20220217-002021/Ivan-Bornyakov/fpga-microsemi-spi-add-Microsemi-FPGA-manager/20220214-222923 head: 6acf97cc27bd55298cb9d6a365b078b09e2b6acf commit: 6acf97cc27bd55298cb9d6a365b078b09e2b6acf fpga: microchip-spi: add Microchip FPGA manager date: 15 hours ago config: mips-randconfig-r006-20220217 (https://download.01.org/0day-ci/archive/20220217/202202171552.gFz6PXXK-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0bad7cb56526f2572c74449fcf97c1fcda42b41d) 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 mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://github.com/0day-ci/linux/commit/6acf97cc27bd55298cb9d6a365b078b09e2b6acf git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review UPDATE-20220217-002021/Ivan-Bornyakov/fpga-microsemi-spi-add-Microsemi-FPGA-manager/20220214-222923 git checkout 6acf97cc27bd55298cb9d6a365b078b09e2b6acf # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/fpga/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/fpga/microchip-spi.c:341:34: warning: unused variable 'mpf_of_ids' [-Wunused-const-variable] static const struct of_device_id mpf_of_ids[] = { ^ 1 warning generated.
vim +/mpf_of_ids +341 drivers/fpga/microchip-spi.c
340 > 341 static const struct of_device_id mpf_of_ids[] = { 342 { .compatible = "microchip,mpf-spi-fpga-mgr" }, 343 {}, 344 }; 345 MODULE_DEVICE_TABLE(of, mpf_of_ids); 346
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |