public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* Re: [PATCH] virtio_vdpa: support the arg sizes of find_vqs()
       [not found] <20220810085151.7251-1-liubo03@inspur.com>
@ 2022-08-11 23:12 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-11 23:12 UTC (permalink / raw)
  To: Bo Liu; +Cc: llvm, kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-11 23:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20220810085151.7251-1-liubo03@inspur.com>
2022-08-11 23:12 ` [PATCH] virtio_vdpa: support the arg sizes of find_vqs() kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox