lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 25 Oct 2021 15:09:07 +0800
From:   kernel test robot <lkp@...el.com>
To:     Max Gurtovoy <mgurtovoy@...dia.com>
Cc:     kbuild-all@...ts.01.org, kvm@...r.kernel.org,
        virtualization@...ts.linux-foundation.org, netdev@...r.kernel.org,
        "Michael S. Tsirkin" <mst@...hat.com>,
        Israel Rukshin <israelr@...dia.com>,
        Feng Li <lifeng1519@...il.com>,
        Stefan Hajnoczi <stefanha@...hat.com>,
        Christoph Hellwig <hch@....de>
Subject: [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@...el.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

Download attachment ".config.gz" of type "application/gzip" (7529 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ