public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [leon-rdma:dma-split-v2 17/23] include/linux/iommu-dma.h:75:9: error: use of undeclared identifier 'DMA_MAPPING_ERROR'
@ 2024-07-26  1:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-26  1:20 UTC (permalink / raw)
  To: Leon Romanovsky; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git dma-split-v2
head:   b957d69a55716514597d798fb534c7df6a7619f5
commit: b377bab12d9b3533f99ffbe852eaba6cdded196d [17/23] RDMA/umem: Prevent UMEM ODP creation with SWIOTLB
config: i386-randconfig-006-20240726 (https://download.01.org/0day-ci/archive/20240726/202407261157.owSmNskU-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240726/202407261157.owSmNskU-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/202407261157.owSmNskU-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/infiniband/core/umem_odp.c:45:
>> include/linux/iommu-dma.h:75:9: error: use of undeclared identifier 'DMA_MAPPING_ERROR'
      75 |         return DMA_MAPPING_ERROR;
         |                ^
   include/linux/iommu-dma.h:136:9: error: use of undeclared identifier 'DMA_MAPPING_ERROR'
     136 |         return DMA_MAPPING_ERROR;
         |                ^
   include/linux/iommu-dma.h:182:9: error: use of undeclared identifier 'DMA_MAPPING_ERROR'
     182 |         return DMA_MAPPING_ERROR;
         |                ^
   3 errors generated.


vim +/DMA_MAPPING_ERROR +75 include/linux/iommu-dma.h

01383b9db929a6 Leon Romanovsky 2024-07-08  12  
01383b9db929a6 Leon Romanovsky 2024-07-08  13  #ifdef CONFIG_IOMMU_DMA
01383b9db929a6 Leon Romanovsky 2024-07-08  14  dma_addr_t iommu_dma_map_page(struct device *dev, struct page *page,
01383b9db929a6 Leon Romanovsky 2024-07-08  15  			      unsigned long offset, size_t size,
01383b9db929a6 Leon Romanovsky 2024-07-08  16  			      enum dma_data_direction dir, unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  17  void iommu_dma_unmap_page(struct device *dev, dma_addr_t dma_handle,
01383b9db929a6 Leon Romanovsky 2024-07-08  18  			  size_t size, enum dma_data_direction dir,
01383b9db929a6 Leon Romanovsky 2024-07-08  19  			  unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  20  int iommu_dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
01383b9db929a6 Leon Romanovsky 2024-07-08  21  		     enum dma_data_direction dir, unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  22  void iommu_dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents,
01383b9db929a6 Leon Romanovsky 2024-07-08  23  			enum dma_data_direction dir, unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  24  void *iommu_dma_alloc(struct device *dev, size_t size, dma_addr_t *handle,
01383b9db929a6 Leon Romanovsky 2024-07-08  25  		      gfp_t gfp, unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  26  int iommu_dma_mmap(struct device *dev, struct vm_area_struct *vma,
01383b9db929a6 Leon Romanovsky 2024-07-08  27  		   void *cpu_addr, dma_addr_t dma_addr,
01383b9db929a6 Leon Romanovsky 2024-07-08  28  		   size_t size, unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  29  int iommu_dma_get_sgtable(struct device *dev, struct sg_table *sgt,
01383b9db929a6 Leon Romanovsky 2024-07-08  30  			  void *cpu_addr, dma_addr_t dma_addr, size_t size,
01383b9db929a6 Leon Romanovsky 2024-07-08  31  			  unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  32  unsigned long iommu_dma_get_merge_boundary(struct device *dev);
01383b9db929a6 Leon Romanovsky 2024-07-08  33  size_t iommu_dma_opt_mapping_size(void);
01383b9db929a6 Leon Romanovsky 2024-07-08  34  size_t iommu_dma_max_mapping_size(struct device *dev);
01383b9db929a6 Leon Romanovsky 2024-07-08  35  void iommu_dma_free(struct device *dev, size_t size, void *cpu_addr,
01383b9db929a6 Leon Romanovsky 2024-07-08  36  		    dma_addr_t handle, unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  37  dma_addr_t iommu_dma_map_resource(struct device *dev, phys_addr_t phys,
01383b9db929a6 Leon Romanovsky 2024-07-08  38  				  size_t size, enum dma_data_direction dir,
01383b9db929a6 Leon Romanovsky 2024-07-08  39  				  unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  40  void iommu_dma_unmap_resource(struct device *dev, dma_addr_t handle,
01383b9db929a6 Leon Romanovsky 2024-07-08  41  			      size_t size, enum dma_data_direction dir,
01383b9db929a6 Leon Romanovsky 2024-07-08  42  			      unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  43  struct sg_table *iommu_dma_alloc_noncontiguous(struct device *dev, size_t size,
01383b9db929a6 Leon Romanovsky 2024-07-08  44  					       enum dma_data_direction dir,
01383b9db929a6 Leon Romanovsky 2024-07-08  45  					       gfp_t gfp, unsigned long attrs);
01383b9db929a6 Leon Romanovsky 2024-07-08  46  void iommu_dma_free_noncontiguous(struct device *dev, size_t size,
01383b9db929a6 Leon Romanovsky 2024-07-08  47  				  struct sg_table *sgt,
01383b9db929a6 Leon Romanovsky 2024-07-08  48  				  enum dma_data_direction dir);
01383b9db929a6 Leon Romanovsky 2024-07-08  49  void iommu_dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle,
01383b9db929a6 Leon Romanovsky 2024-07-08  50  				   size_t size, enum dma_data_direction dir);
01383b9db929a6 Leon Romanovsky 2024-07-08  51  void iommu_dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle,
01383b9db929a6 Leon Romanovsky 2024-07-08  52  				      size_t size, enum dma_data_direction dir);
01383b9db929a6 Leon Romanovsky 2024-07-08  53  void iommu_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sgl,
01383b9db929a6 Leon Romanovsky 2024-07-08  54  			       int nelems, enum dma_data_direction dir);
01383b9db929a6 Leon Romanovsky 2024-07-08  55  void iommu_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sgl,
01383b9db929a6 Leon Romanovsky 2024-07-08  56  				  int nelems, enum dma_data_direction dir);
1ff837e186d1fb Leon Romanovsky 2023-10-29  57  dma_addr_t iommu_dma_alloc_iova(struct device *dev, size_t size);
1ff837e186d1fb Leon Romanovsky 2023-10-29  58  void iommu_dma_free_iova(struct device *dev, dma_addr_t iova, size_t size);
71d04fe28663f4 Leon Romanovsky 2023-10-30  59  int iommu_dma_start_range(struct device *dev);
71d04fe28663f4 Leon Romanovsky 2023-10-30  60  void iommu_dma_end_range(struct device *dev);
71d04fe28663f4 Leon Romanovsky 2023-10-30  61  int iommu_dma_link_range(struct device *dev, phys_addr_t phys, dma_addr_t addr,
71d04fe28663f4 Leon Romanovsky 2023-10-30  62  			 size_t size, enum dma_data_direction dir,
71d04fe28663f4 Leon Romanovsky 2023-10-30  63  			 unsigned long attrs);
71d04fe28663f4 Leon Romanovsky 2023-10-30  64  void iommu_dma_unlink_range(struct device *dev, dma_addr_t start, size_t size,
71d04fe28663f4 Leon Romanovsky 2023-10-30  65  			    enum dma_data_direction dir, unsigned long attrs);
5d7d3730d83d48 Leon Romanovsky 2024-07-18  66  bool iommu_can_use_iova(struct device *dev, struct page *page, size_t size,
5d7d3730d83d48 Leon Romanovsky 2024-07-18  67  			enum dma_data_direction dir);
01383b9db929a6 Leon Romanovsky 2024-07-08  68  #else
01383b9db929a6 Leon Romanovsky 2024-07-08  69  static inline dma_addr_t iommu_dma_map_page(struct device *dev,
01383b9db929a6 Leon Romanovsky 2024-07-08  70  					    struct page *page,
01383b9db929a6 Leon Romanovsky 2024-07-08  71  					    unsigned long offset, size_t size,
01383b9db929a6 Leon Romanovsky 2024-07-08  72  					    enum dma_data_direction dir,
01383b9db929a6 Leon Romanovsky 2024-07-08  73  					    unsigned long attrs)
01383b9db929a6 Leon Romanovsky 2024-07-08  74  {
01383b9db929a6 Leon Romanovsky 2024-07-08 @75  	return DMA_MAPPING_ERROR;

:::::: The code at line 75 was first introduced by commit
:::::: 01383b9db929a6617cd4fb023ad3b0667501e46b dma: add IOMMU static calls with clear default ops

:::::: TO: Leon Romanovsky <leonro@nvidia.com>
:::::: CC: Leon Romanovsky <leon@kernel.org>

-- 
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:[~2024-07-26  1:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-26  1:20 [leon-rdma:dma-split-v2 17/23] include/linux/iommu-dma.h:75:9: error: use of undeclared identifier 'DMA_MAPPING_ERROR' 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