[mst-vhost:vhost 4/47] drivers/block/virtio_blk.c:175:17: error: implicit declaration of function 'sg_free_table_chained'
From: kernel test robot <hidden>
Date: 2021-10-25 07:10:06
Also in:
kvm, oe-kbuild-all, virtualization
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 <redacted> All errors (new ones prefixed by >>): drivers/block/virtio_blk.c: In function 'virtblk_unmap_data':
quoted
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':quoted
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 Attachments
- .config.gz [application/gzip] 7529 bytes