From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Hao Chen <970353908@qq.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-5.10 29716/30000] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c:1195:5: warning: no previous prototype for function 'hclge_tm_vf_tc_dwrr_cfg'
Date: Wed, 4 Sep 2024 06:57:39 +0800 [thread overview]
Message-ID: <202409040605.jzWfVsDp-lkp@intel.com> (raw)
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: b7bed6628b750ffd687d1da0a170dece4b0c08bd
commit: 518ea89ec98b78c749c27d6ba7792e1bdb5779ed [29716/30000] net: hns3: add support for vf multiple tcs
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240904/202409040605.jzWfVsDp-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240904/202409040605.jzWfVsDp-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409040605.jzWfVsDp-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c:1195:5: warning: no previous prototype for function 'hclge_tm_vf_tc_dwrr_cfg' [-Wmissing-prototypes]
1195 | int hclge_tm_vf_tc_dwrr_cfg(struct hclge_vport *vport)
| ^
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c:1195:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1195 | int hclge_tm_vf_tc_dwrr_cfg(struct hclge_vport *vport)
| ^
| static
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c:2323:5: warning: no previous prototype for function 'hclge_mbx_set_vf_multi_tc' [-Wmissing-prototypes]
2323 | int hclge_mbx_set_vf_multi_tc(struct hclge_vport *vport,
| ^
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c:2323:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2323 | int hclge_mbx_set_vf_multi_tc(struct hclge_vport *vport,
| ^
| static
2 warnings generated.
vim +/hclge_tm_vf_tc_dwrr_cfg +1195 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
1194
> 1195 int hclge_tm_vf_tc_dwrr_cfg(struct hclge_vport *vport)
1196 {
1197 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo;
1198 struct hclge_dev *hdev = vport->back;
1199 struct hclge_pg_info *pg_info;
1200 u8 dwrr;
1201 int ret;
1202 u32 i;
1203
1204 for (i = 0; i < kinfo->tc_info.max_tc; i++) {
1205 pg_info = &hdev->tm_info.pg_info[hdev->tm_info.tc_info[i].pgid];
1206 dwrr = i < kinfo->tc_info.num_tc ? pg_info->tc_dwrr[i] : 0;
1207 ret = hclge_tm_qs_weight_cfg(hdev, vport->qs_offset + i, dwrr);
1208 if (ret)
1209 return ret;
1210 }
1211
1212 return 0;
1213 }
1214
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-09-03 22:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202409040605.jzWfVsDp-lkp@intel.com \
--to=lkp@intel.com \
--cc=970353908@qq.com \
--cc=kernel@openeuler.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.