[openeuler:OLK-6.6 1436/1436] drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_hwmon.c:120:37: warning: 'nbl_hwmon_chip_info' defined but not used

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 9586f809caca17d909e778ce0c1e7c479e094166 commit: 432279e0c75d8281a75ace15d6039cb895a5aa86 [1436/1436] Net: nebula_matrix: fix ci build err config: x86_64-randconfig-012-20241108 (https://download.01.org/0day-ci/archive/20241109/202411090733.29Mri3oi-lkp@i...) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241109/202411090733.29Mri3oi-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202411090733.29Mri3oi-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_hwmon.c:120:37: warning: 'nbl_hwmon_chip_info' defined but not used [-Wunused-const-variable=] 120 | static const struct hwmon_chip_info nbl_hwmon_chip_info = { | ^~~~~~~~~~~~~~~~~~~
vim +/nbl_hwmon_chip_info +120 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_hwmon.c bad535d287c9c1 Bennie Yan 2024-09-24 119 bad535d287c9c1 Bennie Yan 2024-09-24 @120 static const struct hwmon_chip_info nbl_hwmon_chip_info = { bad535d287c9c1 Bennie Yan 2024-09-24 121 .ops = &nbl_hwmon_ops, bad535d287c9c1 Bennie Yan 2024-09-24 122 .info = nbl_hwmon_info, bad535d287c9c1 Bennie Yan 2024-09-24 123 }; bad535d287c9c1 Bennie Yan 2024-09-24 124 :::::: The code at line 120 was first introduced by commit :::::: bad535d287c9c1056d99de3666be7da84de4a8fc Net:nbl_core: Add nbl_core-driver for nebula-matrix S1055AS series smart NIC. :::::: TO: Bennie Yan <bennie.yan@nebula-matrix.com> :::::: CC: Bennie Yan <bennie.yan@nebula-matrix.com> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot