From: kernel test robot <lkp@intel.com>
To: Keith Busch <kbusch@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [kbusch:dma-register 1/4] block/bio.c:1155:6: warning: no previous prototype for 'bio_iov_dma_tag_set'
Date: Tue, 19 Jul 2022 23:34:26 +0800 [thread overview]
Message-ID: <202207192339.BezSHVyy-lkp@intel.com> (raw)
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
reply other threads:[~2022-07-19 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202207192339.BezSHVyy-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.