From: kernel test robot <lkp@intel.com>
To: Jijie Shao <shaojijie@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH RFC net-next] net: hns3: add VF representor for tc flower queue selection
Date: Thu, 2 Jul 2026 00:56:48 +0800 [thread overview]
Message-ID: <202607020021.909sTNav-lkp@intel.com> (raw)
In-Reply-To: <20260701130806.695180-1-shaojijie@huawei.com>
Hi Jijie,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:
[auto build test WARNING on 1c664ec4b9ea827b609d296921ed5bad8a40a158]
url: https://github.com/intel-lab-lkp/linux/commits/Jijie-Shao/net-hns3-add-VF-representor-for-tc-flower-queue-selection/20260701-213500
base: 1c664ec4b9ea827b609d296921ed5bad8a40a158
patch link: https://lore.kernel.org/r/20260701130806.695180-1-shaojijie%40huawei.com
patch subject: [PATCH RFC net-next] net: hns3: add VF representor for tc flower queue selection
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260702/202607020021.909sTNav-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607020021.909sTNav-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/202607020021.909sTNav-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_vf_rep.c: In function 'hclge_create_vf_reps':
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_vf_rep.c:107:45: warning: '_rep' directive output may be truncated writing 4 bytes into a region of size between 1 and 16 [-Wformat-truncation=]
107 | snprintf(name, IFNAMSIZ, "%s_rep%d",
| ^~~~
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_vf_rep.c:107:42: note: directive argument in the range [0, 2147483646]
107 | snprintf(name, IFNAMSIZ, "%s_rep%d",
| ^~~~~~~~~~
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_vf_rep.c:107:17: note: 'snprintf' output between 6 and 30 bytes into a destination of size 16
107 | snprintf(name, IFNAMSIZ, "%s_rep%d",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
108 | hdev->vport[0].nic.netdev->name, i);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/_rep +107 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_vf_rep.c
89
90 int hclge_create_vf_reps(struct hnae3_ae_dev *ae_dev, int num_vfs)
91 {
92 struct hclge_dev *hdev = ae_dev->priv;
93 struct hclge_vf_rep *vf_rep;
94 struct net_device *ndev;
95 char name[IFNAMSIZ];
96 int ret, i;
97
98 if (!num_vfs)
99 return 0;
100
101 hdev->vf_reps = kcalloc(num_vfs, sizeof(struct hclge_vf_rep *),
102 GFP_KERNEL);
103 if (!hdev->vf_reps)
104 return -ENOMEM;
105
106 for (i = 0; i < num_vfs; i++) {
> 107 snprintf(name, IFNAMSIZ, "%s_rep%d",
108 hdev->vport[0].nic.netdev->name, i);
109 ndev = alloc_netdev(sizeof(struct hclge_vf_rep), name,
110 NET_NAME_UNKNOWN, ether_setup);
111 if (!ndev) {
112 ret = -ENOMEM;
113 goto err;
114 }
115
116 hclge_vf_rep_net_setup(ndev);
117
118 vf_rep = netdev_priv(ndev);
119 vf_rep->hdev = hdev;
120 vf_rep->vport = &hdev->vport[i + HCLGE_VF_VPORT_START_NUM];
121 vf_rep->netdev = ndev;
122
123 ret = register_netdev(ndev);
124 if (ret) {
125 free_netdev(ndev);
126 goto err;
127 }
128
129 hdev->vf_reps[i] = vf_rep;
130 }
131
132 hdev->num_vf_reps = num_vfs;
133 return 0;
134
135 err:
136 while (i--)
137 unregister_netdev(hdev->vf_reps[i]->netdev);
138 kfree(hdev->vf_reps);
139 hdev->vf_reps = NULL;
140 return ret;
141 }
142
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-07-01 16:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 13:08 [PATCH RFC net-next] net: hns3: add VF representor for tc flower queue selection Jijie Shao
2026-07-01 16:56 ` kernel test robot [this message]
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=202607020021.909sTNav-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=shaojijie@huawei.com \
/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.