tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   cc5c4135da9584aa2ccbd0453cccfe52891f172e
commit: e3baf2b47a93f6d27beb0a94df8b912e57f3534f [14/17] dm-crypt: use 
bi_sector in bio when initialize integrity seed
config: riscv-randconfig-002-20250122 
(https://download.01.org/0day-ci/archive/20250122/202501220353.25owe3te-...@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250122/202501220353.25owe3te-...@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 <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202501220353.25owe3te-...@intel.com/

All errors (new ones prefixed by >>):

   drivers/md/dm-crypt.c: In function 'dm_crypt_integrity_io_alloc':
>> drivers/md/dm-crypt.c:1190:9: error: implicit declaration of function 
>> 'bip_set_seed'; did you mean 'bio_set_dev'? [-Wimplicit-function-declaration]
    1190 |         bip_set_seed(bip, bio->bi_iter.bi_sector);
         |         ^~~~~~~~~~~~
         |         bio_set_dev


vim +1190 drivers/md/dm-crypt.c

  1174  
  1175  static int dm_crypt_integrity_io_alloc(struct dm_crypt_io *io, struct 
bio *bio)
  1176  {
  1177          struct bio_integrity_payload *bip;
  1178          unsigned int tag_len;
  1179          int ret;
  1180  
  1181          if (!bio_sectors(bio) || !io->cc->tuple_size)
  1182                  return 0;
  1183  
  1184          bip = bio_integrity_alloc(bio, GFP_NOIO, 1);
  1185          if (IS_ERR(bip))
  1186                  return PTR_ERR(bip);
  1187  
  1188          tag_len = io->cc->tuple_size * (bio_sectors(bio) >> 
io->cc->sector_shift);
  1189  
> 1190          bip_set_seed(bip, bio->bi_iter.bi_sector);
  1191  
  1192          ret = bio_integrity_add_page(bio, 
virt_to_page(io->integrity_metadata),
  1193                                       tag_len, 
offset_in_page(io->integrity_metadata));
  1194          if (unlikely(ret != tag_len))
  1195                  return -ENOMEM;
  1196  
  1197          return 0;
  1198  }
  1199  

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

Reply via email to