* [kbusch:dma-register 1/4] block/bio.c:1155:6: warning: no previous prototype for 'bio_iov_dma_tag_set'
@ 2022-07-19 15:34 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-19 15:34 UTC (permalink / raw)
To: Keith Busch; +Cc: kbuild-all, linux-kernel
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@intel.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-19 15:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 15:34 [kbusch:dma-register 1/4] block/bio.c:1155:6: warning: no previous prototype for 'bio_iov_dma_tag_set' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.