[openeuler:OLK-6.6 3541/3541] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c:1214:5: warning: no previous prototype for 'hclge_tm_vf_tc_dwrr_cfg'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: cd9eb9b4365b71652b2c2ac58293bea47c9f9302 commit: bc47b7dc2b0180a0d6e7ad218e6c8f5e4fca07a9 [3541/3541] net: hns3: add support for vf multiple tcs config: arm64-defconfig (https://download.01.org/0day-ci/archive/20251213/202512131229.07COqzuf-lkp@i...) compiler: aarch64-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512131229.07COqzuf-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/202512131229.07COqzuf-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c:1214:5: warning: no previous prototype for 'hclge_tm_vf_tc_dwrr_cfg' [-Wmissing-prototypes] 1214 | int hclge_tm_vf_tc_dwrr_cfg(struct hclge_vport *vport) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c:2357:5: warning: no previous prototype for 'hclge_mbx_set_vf_multi_tc' [-Wmissing-prototypes] 2357 | int hclge_mbx_set_vf_multi_tc(struct hclge_vport *vport, | ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/hclge_tm_vf_tc_dwrr_cfg +1214 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c 1213
1214 int hclge_tm_vf_tc_dwrr_cfg(struct hclge_vport *vport) 1215 { 1216 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; 1217 struct hclge_dev *hdev = vport->back; 1218 struct hclge_pg_info *pg_info; 1219 u8 dwrr; 1220 int ret; 1221 u32 i; 1222 1223 for (i = 0; i < kinfo->tc_info.max_tc; i++) { 1224 pg_info = &hdev->tm_info.pg_info[hdev->tm_info.tc_info[i].pgid]; 1225 dwrr = i < kinfo->tc_info.num_tc ? pg_info->tc_dwrr[i] : 0; 1226 ret = hclge_tm_qs_weight_cfg(hdev, vport->qs_offset + i, dwrr); 1227 if (ret) 1228 return ret; 1229 } 1230 1231 return 0; 1232 } 1233
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot