kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [mst-vhost:vhost 4/47] drivers/block/virtio_blk.c:175:17: error: implicit declaration of function 'sg_free_table_chained'
@ 2021-10-25  7:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-25  7:09 UTC (permalink / raw)
  To: Max Gurtovoy
  Cc: kbuild-all, kvm, virtualization, netdev, Michael S. Tsirkin,
	Israel Rukshin, Feng Li, Stefan Hajnoczi, Christoph Hellwig

[-- Attachment #1: Type: text/plain, Size: 2881 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   2b109044b081148b58974f5696ffd4383c3e9abb
commit: b2c5221fd074fbb0e57d6707bed5b7386bf430ed [4/47] virtio-blk: avoid preallocating big SGL for data
config: riscv-nommu_virt_defconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
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://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?id=b2c5221fd074fbb0e57d6707bed5b7386bf430ed
        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 b2c5221fd074fbb0e57d6707bed5b7386bf430ed
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=riscv 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/block/virtio_blk.c: In function 'virtblk_unmap_data':
>> drivers/block/virtio_blk.c:175:17: error: implicit declaration of function 'sg_free_table_chained' [-Werror=implicit-function-declaration]
     175 |                 sg_free_table_chained(&vbr->sg_table,
         |                 ^~~~~~~~~~~~~~~~~~~~~
   drivers/block/virtio_blk.c: In function 'virtblk_map_data':
>> drivers/block/virtio_blk.c:188:15: error: implicit declaration of function 'sg_alloc_table_chained'; did you mean 'sg_alloc_table'? [-Werror=implicit-function-declaration]
     188 |         err = sg_alloc_table_chained(&vbr->sg_table,
         |               ^~~~~~~~~~~~~~~~~~~~~~
         |               sg_alloc_table
   cc1: some warnings being treated as errors


vim +/sg_free_table_chained +175 drivers/block/virtio_blk.c

   171	
   172	static void virtblk_unmap_data(struct request *req, struct virtblk_req *vbr)
   173	{
   174		if (blk_rq_nr_phys_segments(req))
 > 175			sg_free_table_chained(&vbr->sg_table,
   176					      VIRTIO_BLK_INLINE_SG_CNT);
   177	}
   178	
   179	static int virtblk_map_data(struct blk_mq_hw_ctx *hctx, struct request *req,
   180			struct virtblk_req *vbr)
   181	{
   182		int err;
   183	
   184		if (!blk_rq_nr_phys_segments(req))
   185			return 0;
   186	
   187		vbr->sg_table.sgl = vbr->sg;
 > 188		err = sg_alloc_table_chained(&vbr->sg_table,
   189					     blk_rq_nr_phys_segments(req),
   190					     vbr->sg_table.sgl,
   191					     VIRTIO_BLK_INLINE_SG_CNT);
   192		if (unlikely(err))
   193			return -ENOMEM;
   194	
   195		return blk_rq_map_sg(hctx->queue, req, vbr->sg_table.sgl);
   196	}
   197	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 7529 bytes --]

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

only message in thread, other threads:[~2021-10-25  7:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25  7:09 [mst-vhost:vhost 4/47] drivers/block/virtio_blk.c:175:17: error: implicit declaration of function 'sg_free_table_chained' 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;
as well as URLs for NNTP newsgroup(s).