[openeuler:OLK-6.6 3124/3124] drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:5059:32: warning: 'nbl_update_fw_ops' defined but not used
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 66984acf4b16f28a2cc0d5d6186b4b6bbfd92e26 commit: c83cda743e4b3b6d71e36276bf3dc2b35dc64515 [3124/3124] net:nebula-matrix:fix compile err config: x86_64-randconfig-071-20251108 (https://download.01.org/0day-ci/archive/20251108/202511081113.jt4QTRG9-lkp@i...) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251108/202511081113.jt4QTRG9-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/202511081113.jt4QTRG9-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c: In function 'nbl_serv_handle_tx_timeout': drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:1378:33: warning: variable 'vector' set but not used [-Wunused-but-set-variable] 1378 | struct nbl_serv_vector *vector; | ^~~~~~ drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c: In function 'nbl_serv_remove_txrx_queues': drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:3025:35: warning: variable 'ring_mgt' set but not used [-Wunused-but-set-variable] 3025 | struct nbl_serv_ring_mgt *ring_mgt; | ^~~~~~~~ drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c: In function 'nbl_serv_rep_start_xmit': drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:4002:29: warning: variable 'adapter' set but not used [-Wunused-but-set-variable] 4002 | struct nbl_adapter *adapter; | ^~~~~~~ drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c: In function 'nbl_serv_set_wake': drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:4552:43: warning: variable 'net_resource_mgt' set but not used [-Wunused-but-set-variable] 4552 | struct nbl_serv_net_resource_mgt *net_resource_mgt; | ^~~~~~~~~~~~~~~~ drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c: In function 'nbl_serv_load_p4': drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:5736:22: warning: variable 'name' set but not used [-Wunused-but-set-variable] 5736 | u8 *strtab, *name, *product_code = NULL; | ^~~~ drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c: At top level:
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:5059:32: warning: 'nbl_update_fw_ops' defined but not used [-Wunused-const-variable=] 5059 | static const struct pldmfw_ops nbl_update_fw_ops = { | ^~~~~~~~~~~~~~~~~ -- drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: In function 'nbl_dev_prepare_reset_task': drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:902:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 902 | int ret; | ^~~ drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: In function 'nbl_dev_eswitch_load_rep': drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:4598:54: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size between 0 and 15 [-Wformat-truncation=] 4598 | snprintf(net_dev_name, IFNAMSIZ, "%s_%d", net_dev->netdev->name, i); | ^~ drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:4598:50: note: directive argument in the range [0, 2147483646] 4598 | snprintf(net_dev_name, IFNAMSIZ, "%s_%d", net_dev->netdev->name, i); | ^~~~~~~ drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:4598:17: note: 'snprintf' output between 3 and 27 bytes into a destination of size 16 4598 | snprintf(net_dev_name, IFNAMSIZ, "%s_%d", net_dev->netdev->name, i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/nbl_update_fw_ops +5059 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c 468b0cd7b1e1c1 nebula_matrix_driver 2025-09-24 5058 468b0cd7b1e1c1 nebula_matrix_driver 2025-09-24 @5059 static const struct pldmfw_ops nbl_update_fw_ops = { 468b0cd7b1e1c1 nebula_matrix_driver 2025-09-24 5060 .match_record = nbl_serv_pldmfw_op_pci_match_record, 468b0cd7b1e1c1 nebula_matrix_driver 2025-09-24 5061 .send_package_data = nbl_serv_send_package_data, 468b0cd7b1e1c1 nebula_matrix_driver 2025-09-24 5062 .send_component_table = nbl_serv_send_component_table, 468b0cd7b1e1c1 nebula_matrix_driver 2025-09-24 5063 .flash_component = nbl_serv_flash_component, 468b0cd7b1e1c1 nebula_matrix_driver 2025-09-24 5064 .finalize_update = nbl_serv_finalize_update, 468b0cd7b1e1c1 nebula_matrix_driver 2025-09-24 5065 }; 468b0cd7b1e1c1 nebula_matrix_driver 2025-09-24 5066 :::::: The code at line 5059 was first introduced by commit :::::: 468b0cd7b1e1c131b3ee7d2ea8b96521d3faad8b net:nebula-matrix:Add S1000 SNIC driver support :::::: TO: nebula_matrix_driver <open@nebula-matrix.com> :::::: CC: nebula_matrix_driver <open@nebula-matrix.com> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot