[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207192339.BezSHVyy-lkp@intel.com>
Date: Tue, 19 Jul 2022 23:34:26 +0800
From: kernel test robot <lkp@...el.com>
To: Keith Busch <kbusch@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [kbusch:dma-register 1/4] block/bio.c:1155:6: warning: no previous
prototype for 'bio_iov_dma_tag_set'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kbusch/linux.git dma-register
head: 9de6909fed20955193275bbf9c75ccc85553b7d8
commit: 8c38d1fa715ef4cd8c42a27cd252e66f99a440a3 [1/4] iouring/block/nvme: preregister dma mapped buffers
config: um-x86_64_defconfig (https://download.01.org/0day-ci/archive/20220719/202207192339.BezSHVyy-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/kbusch/linux.git/commit/?id=8c38d1fa715ef4cd8c42a27cd252e66f99a440a3
git remote add kbusch https://git.kernel.org/pub/scm/linux/kernel/git/kbusch/linux.git
git fetch --no-tags kbusch dma-register
git checkout 8c38d1fa715ef4cd8c42a27cd252e66f99a440a3
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=um SUBARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> block/bio.c:1155:6: warning: no previous prototype for 'bio_iov_dma_tag_set' [-Wmissing-prototypes]
1155 | void bio_iov_dma_tag_set(struct bio *bio, struct iov_iter *iter)
| ^~~~~~~~~~~~~~~~~~~
block/bio.c:1170:13: warning: 'bio_put_pages' defined but not used [-Wunused-function]
1170 | static void bio_put_pages(struct page **pages, size_t size, size_t off)
| ^~~~~~~~~~~~~
vim +/bio_iov_dma_tag_set +1155 block/bio.c
1154
> 1155 void bio_iov_dma_tag_set(struct bio *bio, struct iov_iter *iter)
1156 {
1157 size_t size = iov_iter_count(iter);
1158
1159 bio->bi_vcnt = iter->nr_segs;
1160 bio->bi_dma_tag = iter->dma_tag;
1161 bio->bi_iter.bi_bvec_done = iter->iov_offset;
1162 bio->bi_iter.bi_size = size;
1163 bio->bi_opf |= REQ_NOMERGE;
1164 bio_set_flag(bio, BIO_NO_PAGE_REF);
1165 bio_set_flag(bio, BIO_DMA_TAGGED);
1166
1167 iov_iter_advance(iter, bio->bi_iter.bi_size);
1168 }
1169
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists