tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 5394cae209c4a4990d81be436ba17ae56fb09d16 commit: 468b0cd7b1e1c131b3ee7d2ea8b96521d3faad8b [3083/3083] net:nebula-matrix:Add S1000 SNIC driver support config: x86_64-buildonly-randconfig-005-20251102 (https://download.01.org/0day-ci/archive/20251103/202511030047.dmhj97Bf-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/20251103/202511030047.dmhj97Bf-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/202511030047.dmhj97Bf-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:5726:22: warning: variable 'name' set but not used [-Wunused-but-set-variable] 5726 | u8 *strtab, *name, *product_code = NULL; | ^~~~ drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c: In function 'nbl_serv_form_p4_name.constprop':
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:5632:59: warning: '%s' directive output may be truncated writing up to 63 bytes into a region of size 43 [-Wformat-truncation=] 5632 | snprintf(name, len, "nbl/snic_v3r1/m181xx_%s_port_p4_%s", eth_num, ver); | ^~ ~~~~~~~ drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c:5632:17: note: 'snprintf' output between 31 and 157 bytes into a destination of size 64 5632 | snprintf(name, len, "nbl/snic_v3r1/m181xx_%s_port_p4_%s", eth_num, ver); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +5632 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_service.c 5598 5599 static void nbl_serv_form_p4_name(struct nbl_common_info *common, int type, char *name, 5600 u16 len, u32 version) 5601 { 5602 char eth_num[NBL_P4_NAME_LEN] = {0}; 5603 char ver[NBL_P4_NAME_LEN] = {0}; 5604 5605 switch (NBL_COMMON_TO_ETH_MODE(common)) { 5606 case 1: 5607 snprintf(eth_num, sizeof(eth_num), "single"); 5608 break; 5609 case 2: 5610 snprintf(eth_num, sizeof(eth_num), "dual"); 5611 break; 5612 case 4: 5613 snprintf(eth_num, sizeof(eth_num), "quad"); 5614 break; 5615 default: 5616 nbl_err(common, NBL_DEBUG_CUSTOMIZED_P4, "Unknown P4 type %d", type); 5617 return; 5618 } 5619 5620 switch (version) { 5621 case 0: 5622 snprintf(ver, sizeof(ver), "lg"); 5623 break; 5624 case 1: 5625 snprintf(ver, sizeof(ver), "hg"); 5626 break; 5627 } 5628 5629 switch (type) { 5630 case NBL_P4_DEFAULT: 5631 /* No need to load default p4 file */
5632 snprintf(name, len, "nbl/snic_v3r1/m181xx_%s_port_p4_%s", eth_num, ver); 5633 break; 5634 default: 5635 nbl_err(common, NBL_DEBUG_CUSTOMIZED_P4, "Unknown P4 type %d", type); 5636 } 5637 } 5638
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki