kernel test robot
2021-Oct-25 07:09 UTC
[mst-vhost:vhost 4/47] drivers/block/virtio_blk.c:175:17: error: implicit declaration of function 'sg_free_table_chained'
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 at 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 at lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 7529 bytes
Desc: not available
URL:
<http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20211025/10f27878/attachment-0001.gz>