[mst-vhost:vhost 62/65] drivers/virtio/virtio_ring.c:1783:9: error: use of undeclared identifier 'vq'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   5e83df49b4993a11b01399f6ce402f775940f965
commit: a50f09346a341984d34ff41f03dbd14dea6f20fe [62/65] virtio_ring: remove unused variable in virtqueue_add()
config: mips-randconfig-c004-20220531 (https://download.01.org/0day-ci/archive/20220601/202206010444.EGBXgPMJ-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c825abd6b0198fb088d9752f556a70705bc99dfd)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mipsel-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?id=a50f09346a341984d34ff41f03dbd14dea6f20fe
        git remote add mst-vhost https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git
        git fetch --no-tags mst-vhost vhost
        git checkout a50f09346a341984d34ff41f03dbd14dea6f20fe
        # 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=mips SHELL=/bin/bash drivers/virtio/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/virtio/virtio_ring.c:1783:9: error: use of undeclared identifier 'vq'
           return vq->packed_ring ? virtqueue_add_packed(_vq, sgs, total_sg,
                  ^
   1 error generated.


vim +/vq +1783 drivers/virtio/virtio_ring.c

1ce9e6055fa0a9 Tiwei Bie 2018-11-21  1768  
1ce9e6055fa0a9 Tiwei Bie 2018-11-21  1769  
e6f633e5beab65 Tiwei Bie 2018-11-21  1770  /*
e6f633e5beab65 Tiwei Bie 2018-11-21  1771   * Generic functions and exported symbols.
e6f633e5beab65 Tiwei Bie 2018-11-21  1772   */
e6f633e5beab65 Tiwei Bie 2018-11-21  1773  
e6f633e5beab65 Tiwei Bie 2018-11-21  1774  static inline int virtqueue_add(struct virtqueue *_vq,
e6f633e5beab65 Tiwei Bie 2018-11-21  1775  				struct scatterlist *sgs[],
e6f633e5beab65 Tiwei Bie 2018-11-21  1776  				unsigned int total_sg,
e6f633e5beab65 Tiwei Bie 2018-11-21  1777  				unsigned int out_sgs,
e6f633e5beab65 Tiwei Bie 2018-11-21  1778  				unsigned int in_sgs,
e6f633e5beab65 Tiwei Bie 2018-11-21  1779  				void *data,
e6f633e5beab65 Tiwei Bie 2018-11-21  1780  				void *ctx,
e6f633e5beab65 Tiwei Bie 2018-11-21  1781  				gfp_t gfp)
e6f633e5beab65 Tiwei Bie 2018-11-21  1782  {
1ce9e6055fa0a9 Tiwei Bie 2018-11-21 @1783  	return vq->packed_ring ? virtqueue_add_packed(_vq, sgs, total_sg,
1ce9e6055fa0a9 Tiwei Bie 2018-11-21  1784  					out_sgs, in_sgs, data, ctx, gfp) :
1ce9e6055fa0a9 Tiwei Bie 2018-11-21  1785  				 virtqueue_add_split(_vq, sgs, total_sg,
e6f633e5beab65 Tiwei Bie 2018-11-21  1786  					out_sgs, in_sgs, data, ctx, gfp);
e6f633e5beab65 Tiwei Bie 2018-11-21  1787  }
e6f633e5beab65 Tiwei Bie 2018-11-21  1788  

:::::: The code at line 1783 was first introduced by commit
:::::: 1ce9e6055fa0a9043405c5604cf19169ec5379ff virtio_ring: introduce packed ring support

:::::: TO: Tiwei Bie <tiwei.bie@xxxxxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux