Messages in this thread | | | Date | Mon, 15 Aug 2022 11:56:54 +0800 | From | kernel test robot <> | Subject | drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: 'ksz9477_dt_ids' defined but not used |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 commit: 20e03777d70923fe7eae0d7f043ef9488393ab95 net: dsa: microchip: add KSZ9477 I2C driver date: 2 years, 11 months ago config: x86_64-buildonly-randconfig-r002-20220815 (https://download.01.org/0day-ci/archive/20220815/202208151149.g01fvM7O-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=20e03777d70923fe7eae0d7f043ef9488393ab95 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 20e03777d70923fe7eae0d7f043ef9488393ab95 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/media/platform/ drivers/net/dsa/microchip/
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/dsa/microchip/ksz9477_i2c.c:77:34: warning: 'ksz9477_dt_ids' defined but not used [-Wunused-const-variable=] 77 | static const struct of_device_id ksz9477_dt_ids[] = { | ^~~~~~~~~~~~~~
vim +/ksz9477_dt_ids +77 drivers/net/dsa/microchip/ksz9477_i2c.c
76 > 77 static const struct of_device_id ksz9477_dt_ids[] = { 78 { .compatible = "microchip,ksz9477" }, 79 { .compatible = "microchip,ksz9897" }, 80 {}, 81 }; 82 MODULE_DEVICE_TABLE(of, ksz9477_dt_ids); 83
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |