Hi Larysa, kernel test robot noticed the following build warnings:
[auto build test WARNING on tnguy-next-queue/dev-queue] url: https://github.com/intel-lab-lkp/linux/commits/Larysa-Zaremba/ice-fix-check-for-existing-switch-rule/20250204-200839 base: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue patch link: https://lore.kernel.org/r/20250204115111.1652453-7-larysa.zaremba%40intel.com patch subject: [Intel-wired-lan] [PATCH iwl-next v2 6/6] ice: enable LLDP TX for VFs through tc config: csky-randconfig-r132-20250205 (https://download.01.org/0day-ci/archive/20250205/[email protected]/config) compiler: csky-linux-gcc (GCC) 14.2.0 reproduce: (https://download.01.org/0day-ci/archive/20250205/[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]/ sparse warnings: (new ones prefixed by >>) >> drivers/net/ethernet/intel/ice/ice_tc_lib.c:848:18: sparse: sparse: >> Initializer entry defined twice drivers/net/ethernet/intel/ice/ice_tc_lib.c:854:18: sparse: also defined here vim +848 drivers/net/ethernet/intel/ice/ice_tc_lib.c 843 844 int ice_drop_vf_tx_lldp(struct ice_vsi *vsi, bool init) 845 { 846 struct ice_rule_query_data rule_added; 847 struct ice_adv_rule_info rinfo = { > 848 .sw_act = { 849 .fltr_act = ICE_DROP_PACKET, 850 .flag = ICE_FLTR_TX, 851 }, 852 .priority = 7, 853 .flags_info.act_valid = true, 854 .sw_act.src = vsi->idx, 855 .src_vsi = vsi->idx, 856 .sw_act.vsi_handle = vsi->idx, 857 }; 858 struct ice_adv_lkup_elem list[3]; 859 struct ice_pf *pf = vsi->back; 860 int err; 861 862 if (!init && !vsi->vf->lldp_tx_ena) 863 return 0; 864 865 ice_rule_add_direction_metadata(&list[0]); 866 ice_rule_add_src_vsi_metadata(&list[1]); 867 list[2].type = ICE_ETYPE_OL; 868 list[2].h_u.ethertype.ethtype_id = htons(ETH_P_LLDP); 869 list[2].m_u.ethertype.ethtype_id = htons(0xFFFF); 870 871 err = ice_add_adv_rule(&pf->hw, list, ARRAY_SIZE(list), &rinfo, 872 &rule_added); 873 if (err) { 874 dev_err(&pf->pdev->dev, 875 "Failed to add an LLDP rule to VSI 0x%X: %d\n", 876 vsi->idx, err); 877 } else { 878 vsi->vf->lldp_recipe_id = rule_added.rid; 879 vsi->vf->lldp_rule_id = rule_added.rule_id; 880 vsi->vf->lldp_tx_ena = false; 881 } 882 883 return err; 884 } 885 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
