Re: [PATCH] md: support to align bio to limits

From: kernel test robot
Date: Mon Nov 24 2025 - 20:39:08 EST


Hi Yu,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.18-rc7 next-20251124]
[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/Yu-Kuai/md-support-to-align-bio-to-limits/20251121-131703
base: linus/master
patch link: https://lore.kernel.org/r/20251121051406.1316884-3-yukuai%40fnnas.com
patch subject: [PATCH] md: support to align bio to limits
config: i386-randconfig-002-20251125 (https://download.01.org/0day-ci/archive/20251125/202511250848.gq6d7JeR-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251125/202511250848.gq6d7JeR-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511250848.gq6d7JeR-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

ld: drivers/md/md.o: in function `__md_bio_align_to_limits':
>> drivers/md/md.c:434:(.text+0x68e4): undefined reference to `__umoddi3'
>> ld: drivers/md/md.c:443:(.text+0x693a): undefined reference to `__umoddi3'


vim +434 drivers/md/md.c

428
429 static struct bio *__md_bio_align_to_limits(struct mddev *mddev,
430 struct bio *bio)
431 {
432 unsigned int max_sectors = mddev->gendisk->queue->limits.max_sectors;
433 sector_t start = bio->bi_iter.bi_sector;
> 434 sector_t align_start = roundup(start, max_sectors);
435 sector_t end;
436 sector_t align_end;
437
438 /* already aligned */
439 if (align_start == start)
440 return bio;
441
442 end = start + bio_sectors(bio);
> 443 align_end = rounddown(end, max_sectors);
444
445 /* bio is too small to split */
446 if (align_end <= align_start)
447 return bio;
448
449 return bio_submit_split_bioset(bio, align_start - start,
450 &mddev->gendisk->bio_split);
451 }
452

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki