[openeuler:OLK-5.10 3257/3257] drivers/net/ethernet/nebula-matrix/m1600/ethtool.h:131:19: warning: 'nbl_priv_flags' defined but not used
 
            tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 5860abf4ca1c1e5ced0d4787886db4195a9c54ea commit: 01e6e2075c432fde7fb5a66202b41bbd469de620 [3257/3257] Net: m1600: Add m1600-driver for nebula-matrix m1600 series smart NIC. config: x86_64-randconfig-121-20251030 (https://download.01.org/0day-ci/archive/20251030/202510300807.ZZO1csL8-lkp@i...) compiler: gcc-12 (Debian 12.4.0-5) 12.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251030/202510300807.ZZO1csL8-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/202510300807.ZZO1csL8-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/net/ethernet/nebula-matrix/m1600/main.c:155:6: warning: no previous prototype for 'nbl_service_task2_schedule' [-Wmissing-prototypes] 155 | void nbl_service_task2_schedule(struct nbl_adapter *adapter) | ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/m1600/main.c:436:6: warning: no previous prototype for 'nbl_check_and_set_module_info' [-Wmissing-prototypes] 436 | void nbl_check_and_set_module_info(struct nbl_hw *hw) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/net/ethernet/nebula-matrix/m1600/main.c:22: drivers/net/ethernet/nebula-matrix/m1600/ethtool.h:131:19: warning: 'nbl_priv_flags' defined but not used [-Wunused-const-variable=] 131 | static const char nbl_priv_flags[][ETH_GSTRING_LEN] = { | ^~~~~~~~~~~~~~ drivers/net/ethernet/nebula-matrix/m1600/ethtool.h:116:19: warning: 'nbl_gstrings_test' defined but not used [-Wunused-const-variable=] 116 | static const char nbl_gstrings_test[][ETH_GSTRING_LEN] = { | ^~~~~~~~~~~~~~~~~ drivers/net/ethernet/nebula-matrix/m1600/ethtool.h:57:39: warning: 'nbl_gstrings_stats' defined but not used [-Wunused-const-variable=] 57 | static const struct nbl_ethtool_stats nbl_gstrings_stats[] = { | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/nebula-matrix/m1600/ethtool.h:13:18: warning: 'nbl_regs_dump_list' defined but not used [-Wunused-const-variable=] 13 | static const u32 nbl_regs_dump_list[] = { | ^~~~~~~~~~~~~~~~~~ -- drivers/net/ethernet/nebula-matrix/m1600/ethtool.c:507:5: warning: no previous prototype for 'nbl_get_eeprom_len' [-Wmissing-prototypes] 507 | int nbl_get_eeprom_len(struct net_device *netdev) | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/nebula-matrix/m1600/ethtool.c:643:5: warning: no previous prototype for 'nbl_query_link_speed' [-Wmissing-prototypes] 643 | u32 nbl_query_link_speed(struct nbl_hw *hw) | ^~~~~~~~~~~~~~~~~~~~ -- In file included from drivers/net/ethernet/nebula-matrix/m1600/mailbox.c:15: drivers/net/ethernet/nebula-matrix/m1600/ethtool.h:131:19: warning: 'nbl_priv_flags' defined but not used [-Wunused-const-variable=] 131 | static const char nbl_priv_flags[][ETH_GSTRING_LEN] = { | ^~~~~~~~~~~~~~ drivers/net/ethernet/nebula-matrix/m1600/ethtool.h:116:19: warning: 'nbl_gstrings_test' defined but not used [-Wunused-const-variable=] 116 | static const char nbl_gstrings_test[][ETH_GSTRING_LEN] = { | ^~~~~~~~~~~~~~~~~ drivers/net/ethernet/nebula-matrix/m1600/ethtool.h:57:39: warning: 'nbl_gstrings_stats' defined but not used [-Wunused-const-variable=] 57 | static const struct nbl_ethtool_stats nbl_gstrings_stats[] = { | ^~~~~~~~~~~~~~~~~~ drivers/net/ethernet/nebula-matrix/m1600/ethtool.h:13:18: warning: 'nbl_regs_dump_list' defined but not used [-Wunused-const-variable=] 13 | static const u32 nbl_regs_dump_list[] = { | ^~~~~~~~~~~~~~~~~~
sparse warnings: (new ones prefixed by >>) drivers/net/ethernet/nebula-matrix/m1600/main.c:155:6: sparse: sparse: symbol 'nbl_service_task2_schedule' was not declared. Should it be static?
drivers/net/ethernet/nebula-matrix/m1600/main.c:436:6: sparse: sparse: symbol 'nbl_check_and_set_module_info' was not declared. Should it be static?
vim +/nbl_priv_flags +131 drivers/net/ethernet/nebula-matrix/m1600/ethtool.h 130
131 static const char nbl_priv_flags[][ETH_GSTRING_LEN] = { 132 "sriov-ena", 133 }; 134
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
- 
                 kernel test robot kernel test robot