* Re: [PATCH 2/5] block: add support for copy offload
[not found] <20250521223107.709131-3-kbusch@meta.com>
@ 2025-05-22 10:04 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-22 10:04 UTC (permalink / raw)
To: Keith Busch; +Cc: llvm, oe-kbuild-all
Hi Keith,
kernel test robot noticed the following build warnings:
[auto build test WARNING on axboe-block/for-next]
[also build test WARNING on next-20250521]
[cannot apply to linux-nvme/for-next brauner-vfs/vfs.all linus/master v6.15-rc7]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Keith-Busch/block-new-sector-copy-api/20250522-063316
base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
patch link: https://lore.kernel.org/r/20250521223107.709131-3-kbusch%40meta.com
patch subject: [PATCH 2/5] block: add support for copy offload
config: x86_64-buildonly-randconfig-001-20250522 (https://download.01.org/0day-ci/archive/20250522/202505221702.EcgNFozB-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250522/202505221702.EcgNFozB-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505221702.EcgNFozB-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> block/blk-integrity.c:29:31: warning: suggest braces around initialization of subobject [-Wmissing-braces]
29 | struct bio_vec iv, ivprv = { NULL };
| ^~~~
| { }
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
block/blk-integrity.c:69:31: warning: suggest braces around initialization of subobject [-Wmissing-braces]
69 | struct bio_vec iv, ivprv = { NULL };
| ^~~~
| { }
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
2 warnings generated.
vim +29 block/blk-integrity.c
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 18
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 19 /**
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 20 * blk_rq_count_integrity_sg - Count number of integrity scatterlist elements
13f05c8d8e98bb Martin K. Petersen 2010-09-10 21 * @q: request queue
13f05c8d8e98bb Martin K. Petersen 2010-09-10 22 * @bio: bio with integrity metadata attached
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 23 *
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 24 * Description: Returns the number of elements required in a
13f05c8d8e98bb Martin K. Petersen 2010-09-10 25 * scatterlist corresponding to the integrity metadata in a bio.
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 26 */
13f05c8d8e98bb Martin K. Petersen 2010-09-10 27 int blk_rq_count_integrity_sg(struct request_queue *q, struct bio *bio)
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 28 {
d57a5f7c6605f1 Kent Overstreet 2013-11-23 @29 struct bio_vec iv, ivprv = { NULL };
13f05c8d8e98bb Martin K. Petersen 2010-09-10 30 unsigned int segments = 0;
13f05c8d8e98bb Martin K. Petersen 2010-09-10 31 unsigned int seg_size = 0;
d57a5f7c6605f1 Kent Overstreet 2013-11-23 32 struct bvec_iter iter;
d57a5f7c6605f1 Kent Overstreet 2013-11-23 33 int prev = 0;
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 34
d57a5f7c6605f1 Kent Overstreet 2013-11-23 35 bio_for_each_integrity_vec(iv, bio, iter) {
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 36
d57a5f7c6605f1 Kent Overstreet 2013-11-23 37 if (prev) {
3dccdae54fe836 Christoph Hellwig 2018-09-24 38 if (!biovec_phys_mergeable(q, &ivprv, &iv))
13f05c8d8e98bb Martin K. Petersen 2010-09-10 39 goto new_segment;
d57a5f7c6605f1 Kent Overstreet 2013-11-23 40 if (seg_size + iv.bv_len > queue_max_segment_size(q))
13f05c8d8e98bb Martin K. Petersen 2010-09-10 41 goto new_segment;
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 42
d57a5f7c6605f1 Kent Overstreet 2013-11-23 43 seg_size += iv.bv_len;
13f05c8d8e98bb Martin K. Petersen 2010-09-10 44 } else {
13f05c8d8e98bb Martin K. Petersen 2010-09-10 45 new_segment:
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 46 segments++;
d57a5f7c6605f1 Kent Overstreet 2013-11-23 47 seg_size = iv.bv_len;
13f05c8d8e98bb Martin K. Petersen 2010-09-10 48 }
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 49
d57a5f7c6605f1 Kent Overstreet 2013-11-23 50 prev = 1;
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 51 ivprv = iv;
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 52 }
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 53
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 54 return segments;
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 55 }
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 56
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-22 10:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250521223107.709131-3-kbusch@meta.com>
2025-05-22 10:04 ` [PATCH 2/5] block: add support for copy offload kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox