tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue.git dev-queue head: e50b34f0f3fb86c9be2f9ad3b7ed483f18b46896 commit: 1f7e7f027658aba172437f3a0451ca7a30bf268e [2/17] ice: fix fwlog after driver reinit config: x86_64-buildonly-randconfig-005-20251004 (https://download.01.org/0day-ci/archive/20251004/[email protected]/config) 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/20251004/[email protected]/reproduce)
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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): drivers/net/ethernet/intel/ice/ice_main.c: In function 'ice_load': >> drivers/net/ethernet/intel/ice/ice_main.c:5120:19: error: 'struct ice_hw' >> has no member named 'fwlog_cfg' 5120 | if (pf->hw.fwlog_cfg.options & ICE_FWLOG_OPTION_IS_REGISTERED) { | ^ >> drivers/net/ethernet/intel/ice/ice_main.c:5120:40: error: >> 'ICE_FWLOG_OPTION_IS_REGISTERED' undeclared (first use in this function); >> did you mean 'LIBIE_FWLOG_OPTION_IS_REGISTERED'? 5120 | if (pf->hw.fwlog_cfg.options & ICE_FWLOG_OPTION_IS_REGISTERED) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | LIBIE_FWLOG_OPTION_IS_REGISTERED drivers/net/ethernet/intel/ice/ice_main.c:5120:40: note: each undeclared identifier is reported only once for each function it appears in >> drivers/net/ethernet/intel/ice/ice_main.c:5121:23: error: implicit >> declaration of function 'ice_fwlog_register'; did you mean >> 'libie_fwlog_reregister'? [-Wimplicit-function-declaration] 5121 | err = ice_fwlog_register(&pf->hw); | ^~~~~~~~~~~~~~~~~~ | libie_fwlog_reregister drivers/net/ethernet/intel/ice/ice_main.c:5123:31: error: 'struct ice_hw' has no member named 'fwlog_cfg' 5123 | pf->hw.fwlog_cfg.options &= | ^ drivers/net/ethernet/intel/ice/ice_main.c: In function 'ice_rebuild': drivers/net/ethernet/intel/ice/ice_main.c:7687:15: error: 'struct ice_hw' has no member named 'fwlog_cfg' 7687 | if (hw->fwlog_cfg.options & ICE_FWLOG_OPTION_IS_REGISTERED) { | ^~ drivers/net/ethernet/intel/ice/ice_main.c:7687:37: error: 'ICE_FWLOG_OPTION_IS_REGISTERED' undeclared (first use in this function); did you mean 'LIBIE_FWLOG_OPTION_IS_REGISTERED'? 7687 | if (hw->fwlog_cfg.options & ICE_FWLOG_OPTION_IS_REGISTERED) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | LIBIE_FWLOG_OPTION_IS_REGISTERED drivers/net/ethernet/intel/ice/ice_main.c:7690:27: error: 'struct ice_hw' has no member named 'fwlog_cfg' 7690 | hw->fwlog_cfg.options &= | ^~ vim +5120 drivers/net/ethernet/intel/ice/ice_main.c 5106 5107 /** 5108 * ice_load - load pf by init hw and starting VSI 5109 * @pf: pointer to the pf instance 5110 * 5111 * This function has to be called under devl_lock. 5112 */ 5113 int ice_load(struct ice_pf *pf) 5114 { 5115 struct ice_vsi *vsi; 5116 int err; 5117 5118 devl_assert_locked(priv_to_devlink(pf)); 5119 > 5120 if (pf->hw.fwlog_cfg.options & ICE_FWLOG_OPTION_IS_REGISTERED) { > 5121 err = ice_fwlog_register(&pf->hw); 5122 if (err) 5123 pf->hw.fwlog_cfg.options &= 5124 ~ICE_FWLOG_OPTION_IS_REGISTERED; 5125 } 5126 5127 vsi = ice_get_main_vsi(pf); 5128 5129 /* init channel list */ 5130 INIT_LIST_HEAD(&vsi->ch_list); 5131 5132 err = ice_cfg_netdev(vsi); 5133 if (err) 5134 return err; 5135 5136 /* Setup DCB netlink interface */ 5137 ice_dcbnl_setup(vsi); 5138 5139 err = ice_init_mac_fltr(pf); 5140 if (err) 5141 goto err_init_mac_fltr; 5142 5143 err = ice_devlink_create_pf_port(pf); 5144 if (err) 5145 goto err_devlink_create_pf_port; 5146 5147 SET_NETDEV_DEVLINK_PORT(vsi->netdev, &pf->devlink_port); 5148 5149 err = ice_register_netdev(vsi); 5150 if (err) 5151 goto err_register_netdev; 5152 5153 err = ice_tc_indir_block_register(vsi); 5154 if (err) 5155 goto err_tc_indir_block_register; 5156 5157 ice_napi_add(vsi); 5158 5159 ice_init_features(pf); 5160 5161 err = ice_init_rdma(pf); 5162 if (err) 5163 goto err_init_rdma; 5164 5165 ice_service_task_restart(pf); 5166 5167 clear_bit(ICE_DOWN, pf->state); 5168 5169 return 0; 5170 5171 err_init_rdma: 5172 ice_deinit_features(pf); 5173 ice_tc_indir_block_unregister(vsi); 5174 err_tc_indir_block_register: 5175 ice_unregister_netdev(vsi); 5176 err_register_netdev: 5177 ice_devlink_destroy_pf_port(pf); 5178 err_devlink_create_pf_port: 5179 err_init_mac_fltr: 5180 ice_decfg_netdev(vsi); 5181 return err; 5182 } 5183 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
