From: kernel test robot <lkp@intel.com>
To: SelvaKumar S <selvakuma.s1@samsung.com>,
linux-nvme@lists.infradead.org, linux-block@vger.kernel.org
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
linux-api@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-fsdevel@vger.kernel.org, dm-devel@redhat.com,
kbusch@kernel.org, axboe@kernel.dk, damien.lemoal@wdc.com,
asml.silence@gmail.com
Subject: Re: [PATCH 5/7] block: add emulation for simple copy
Date: Wed, 18 Aug 2021 06:10:02 +0800 [thread overview]
Message-ID: <202108180621.kWOjpDGz-lkp@intel.com> (raw)
In-Reply-To: <20210817101423.12367-6-selvakuma.s1@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 4154 bytes --]
Hi SelvaKumar,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on block/for-next]
[also build test WARNING on dm/for-next next-20210817]
[cannot apply to linus/master linux-nvme/for-next v5.14-rc6]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/SelvaKumar-S/block-make-bio_map_kern-non-static/20210817-193111
base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: hexagon-randconfig-r013-20210816 (attached as .config)
compiler: clang version 12.0.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://github.com/0day-ci/linux/commit/c307f1051a72122d636502c6885df8b2b25ed697
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review SelvaKumar-S/block-make-bio_map_kern-non-static/20210817-193111
git checkout c307f1051a72122d636502c6885df8b2b25ed697
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
block/blk-lib.c:197:5: warning: no previous prototype for function 'blk_copy_offload_submit_bio' [-Wmissing-prototypes]
int blk_copy_offload_submit_bio(struct block_device *bdev,
^
block/blk-lib.c:197:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int blk_copy_offload_submit_bio(struct block_device *bdev,
^
static
block/blk-lib.c:250:5: warning: no previous prototype for function 'blk_copy_offload_scc' [-Wmissing-prototypes]
int blk_copy_offload_scc(struct block_device *src_bdev, int nr_srcs,
^
block/blk-lib.c:250:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int blk_copy_offload_scc(struct block_device *src_bdev, int nr_srcs,
^
static
>> block/blk-lib.c:336:5: warning: no previous prototype for function 'blk_submit_rw_buf' [-Wmissing-prototypes]
int blk_submit_rw_buf(struct block_device *bdev, void *buf, sector_t buf_len,
^
block/blk-lib.c:336:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int blk_submit_rw_buf(struct block_device *bdev, void *buf, sector_t buf_len,
^
static
3 warnings generated.
vim +/blk_submit_rw_buf +336 block/blk-lib.c
335
> 336 int blk_submit_rw_buf(struct block_device *bdev, void *buf, sector_t buf_len,
337 sector_t sector, unsigned int op, gfp_t gfp_mask)
338 {
339 struct request_queue *q = bdev_get_queue(bdev);
340 struct bio *bio, *parent = NULL;
341 sector_t max_hw_len = min_t(unsigned int, queue_max_hw_sectors(q),
342 queue_max_segments(q) << (PAGE_SHIFT - SECTOR_SHIFT));
343 sector_t len, remaining;
344 int ret;
345
346 for (remaining = buf_len; remaining > 0; remaining -= len) {
347 len = min_t(int, max_hw_len, remaining);
348 retry:
349 bio = bio_map_kern(q, buf, len << SECTOR_SHIFT, gfp_mask);
350 if (IS_ERR(bio)) {
351 len >>= 1;
352 if (len)
353 goto retry;
354 return PTR_ERR(bio);
355 }
356
357 bio->bi_iter.bi_sector = sector;
358 bio->bi_opf = op;
359 bio_set_dev(bio, bdev);
360 bio->bi_end_io = NULL;
361 bio->bi_private = NULL;
362
363 if (parent) {
364 bio_chain(parent, bio);
365 submit_bio(parent);
366 }
367 parent = bio;
368 sector += len;
369 }
370 ret = submit_bio_wait(bio);
371 bio_put(bio);
372
373 return ret;
374 }
375
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 22159 bytes --]
next prev parent reply other threads:[~2021-08-17 22:11 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20210817101741epcas5p174ca0a539587da6a67b9f58cd13f2bad@epcas5p1.samsung.com>
2021-08-17 10:14 ` [PATCH 0/7] add simple copy support SelvaKumar S
2021-08-17 10:14 ` [PATCH 1/7] block: make bio_map_kern() non static SelvaKumar S
2021-08-17 10:14 ` [PATCH 2/7] block: Introduce queue limits for copy-offload support SelvaKumar S
2021-08-17 13:08 ` Greg KH
2021-08-17 14:42 ` Nitesh Shetty
2021-08-17 10:14 ` [PATCH 3/7] block: copy offload support infrastructure SelvaKumar S
2021-08-17 17:14 ` Bart Van Assche
2021-08-17 20:41 ` Mikulas Patocka
2021-08-17 21:53 ` Douglas Gilbert
2021-08-17 22:06 ` Bart Van Assche
2021-08-20 10:39 ` Kanchan Joshi
2021-08-20 21:18 ` Bart Van Assche
2021-08-26 7:46 ` Nitesh Shetty
2021-08-17 20:35 ` kernel test robot
2021-08-18 18:35 ` Martin K. Petersen
2021-08-20 11:11 ` Kanchan Joshi
2021-08-17 10:14 ` [PATCH 4/7] block: Introduce a new ioctl for simple copy SelvaKumar S
2021-08-17 13:09 ` Greg KH
2021-08-17 13:10 ` Greg KH
2021-08-17 14:48 ` Nitesh Shetty
2021-08-17 23:36 ` Darrick J. Wong
2021-08-18 15:37 ` Nitesh Shetty
2021-08-18 16:17 ` Darrick J. Wong
2021-08-17 10:14 ` [PATCH 5/7] block: add emulation " SelvaKumar S
2021-08-17 22:10 ` kernel test robot [this message]
2021-08-17 10:14 ` [PATCH 6/7] nvme: add simple copy support SelvaKumar S
2021-08-17 10:14 ` [PATCH 7/7] dm kcopyd: add simple copy offload support SelvaKumar S
2021-08-17 20:29 ` [dm-devel] " Mikulas Patocka
2021-08-17 23:37 ` [PATCH 0/7] add simple copy support Darrick J. Wong
2021-08-18 15:40 ` Nitesh Shetty
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=202108180621.kWOjpDGz-lkp@intel.com \
--to=lkp@intel.com \
--cc=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=clang-built-linux@googlegroups.com \
--cc=damien.lemoal@wdc.com \
--cc=dm-devel@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=kbusch@kernel.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=selvakuma.s1@samsung.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox