[PATCH 1/2] blk-integrity: add scatter-less DMA mapping helpers

kernel test robot lkp at intel.com
Thu Jun 26 06:55:27 PDT 2025


Hi Keith,

kernel test robot noticed the following build errors:

[auto build test ERROR on axboe-block/for-next]
[also build test ERROR on next-20250626]
[cannot apply to linux-nvme/for-next hch-configfs/for-next linus/master v6.16-rc3]
[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/nvme-convert-metadata-mapping-to-dma-iter/20250626-044623
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
patch link:    https://lore.kernel.org/r/20250625204445.1802483-1-kbusch%40meta.com
patch subject: [PATCH 1/2] blk-integrity: add scatter-less DMA mapping helpers
config: x86_64-buildonly-randconfig-002-20250626 (https://download.01.org/0day-ci/archive/20250626/202506262136.WXl2reWF-lkp@intel.com/config)
compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250626/202506262136.WXl2reWF-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506262136.WXl2reWF-lkp@intel.com/

All errors (new ones prefixed by >>):

>> block/blk-integrity.c:194:19: error: use of undeclared identifier 'blk_rq_integrity_map_iter_start'
     194 | EXPORT_SYMBOL_GPL(blk_rq_integrity_map_iter_start);
         |                   ^
   1 error generated.


vim +/blk_rq_integrity_map_iter_start +194 block/blk-integrity.c

   165	
   166	bool blk_rq_integrity_dma_map_iter_start(struct request *req,
   167			struct device *dma_dev, struct blk_dma_iter *iter)
   168	{
   169		struct bio_integrity_payload *bip = bio_integrity(req->bio);
   170		struct phys_vec vec;
   171	
   172		iter->iter.bio = req->bio;
   173		iter->iter.iter = bip->bip_iter;
   174		memset(&iter->p2pdma, 0, sizeof(iter->p2pdma));
   175		iter->status = BLK_STS_OK;
   176	
   177		if (!blk_rq_integrity_map_iter_next(req, &iter->iter, &vec))
   178			return false;
   179	
   180		switch (pci_p2pdma_state(&iter->p2pdma, dma_dev,
   181					phys_to_page(vec.paddr))) {
   182		case PCI_P2PDMA_MAP_BUS_ADDR:
   183			return blk_dma_map_bus(iter, &vec);
   184		case PCI_P2PDMA_MAP_THRU_HOST_BRIDGE:
   185		case PCI_P2PDMA_MAP_NONE:
   186			break;
   187		default:
   188			iter->status = BLK_STS_INVAL;
   189			return false;
   190		}
   191	
   192		return blk_dma_map_direct(req, dma_dev, iter, &vec);
   193	}
 > 194	EXPORT_SYMBOL_GPL(blk_rq_integrity_map_iter_start);
   195	

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



More information about the Linux-nvme mailing list