From: kernel test robot <lkp@intel.com>
To: Bo Liu <liubo03@inspur.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [PATCH] virtio_vdpa: support the arg sizes of find_vqs()
Date: Fri, 12 Aug 2022 07:12:26 +0800 [thread overview]
Message-ID: <202208120746.SFwH7EXv-lkp@intel.com> (raw)
In-Reply-To: <20220810085151.7251-1-liubo03@inspur.com>
Hi Bo,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.19]
[cannot apply to next-20220811]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Bo-Liu/virtio_vdpa-support-the-arg-sizes-of-find_vqs/20220810-165406
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d4252071b97d2027d246f6a82cbee4d52f618b47
config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220812/202208120746.SFwH7EXv-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 5f1c7e2cc5a3c07cbc2412e851a7283c1841f520)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/49428ec00a2ac66aac1f626fe412aaac952353f3
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Bo-Liu/virtio_vdpa-support-the-arg-sizes-of-find_vqs/20220810-165406
git checkout 49428ec00a2ac66aac1f626fe412aaac952353f3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/virtio/virtio_vdpa.c:289:27: error: use of undeclared identifier 'sizes'
names[i], sizes ? sizes[i] : 0,
^
drivers/virtio/virtio_vdpa.c:289:19: error: use of undeclared identifier 'sizes'
names[i], sizes ? sizes[i] : 0,
^
2 errors generated.
vim +/sizes +289 drivers/virtio/virtio_vdpa.c
268
269 static int virtio_vdpa_find_vqs(struct virtio_device *vdev, unsigned int nvqs,
270 struct virtqueue *vqs[],
271 vq_callback_t *callbacks[],
272 const char * const names[],
273 const bool *ctx,
274 struct irq_affinity *desc)
275 {
276 struct virtio_vdpa_device *vd_dev = to_virtio_vdpa_device(vdev);
277 struct vdpa_device *vdpa = vd_get_vdpa(vdev);
278 const struct vdpa_config_ops *ops = vdpa->config;
279 struct vdpa_callback cb;
280 int i, err, queue_idx = 0;
281
282 for (i = 0; i < nvqs; ++i) {
283 if (!names[i]) {
284 vqs[i] = NULL;
285 continue;
286 }
287
288 vqs[i] = virtio_vdpa_setup_vq(vdev, queue_idx++, callbacks[i],
> 289 names[i], sizes ? sizes[i] : 0,
290 ctx ? ctx[i] : false);
291 if (IS_ERR(vqs[i])) {
292 err = PTR_ERR(vqs[i]);
293 goto err_setup_vq;
294 }
295 }
296
297 cb.callback = virtio_vdpa_config_cb;
298 cb.private = vd_dev;
299 ops->set_config_cb(vdpa, &cb);
300
301 return 0;
302
303 err_setup_vq:
304 virtio_vdpa_del_vqs(vdev);
305 return err;
306 }
307
--
0-DAY CI Kernel Test Service
https://01.org/lkp
parent reply other threads:[~2022-08-11 23:13 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20220810085151.7251-1-liubo03@inspur.com>]
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=202208120746.SFwH7EXv-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=liubo03@inspur.com \
--cc=llvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox