[linux-next:master 5832/6533] drivers/iommu/apple-dart.c:380:12: error: 'struct io_pgtable_ops' has no member named 'map_pages'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   92d00774360dfd4151f15ab9905c643347b9f242
commit: 05ce9d20d699b093dec985192a7db63b48f26ca2 [5832/6533] iommu/dart: Add DART iommu driver
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=05ce9d20d699b093dec985192a7db63b48f26ca2
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 05ce9d20d699b093dec985192a7db63b48f26ca2
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

Note: the linux-next/master HEAD 92d00774360dfd4151f15ab9905c643347b9f242 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   drivers/iommu/apple-dart.c: In function 'apple_dart_map_pages':
>> drivers/iommu/apple-dart.c:380:12: error: 'struct io_pgtable_ops' has no member named 'map_pages'
     380 |  return ops->map_pages(ops, iova, paddr, pgsize, pgcount, prot, gfp,
         |            ^~
   drivers/iommu/apple-dart.c: In function 'apple_dart_unmap_pages':
>> drivers/iommu/apple-dart.c:392:12: error: 'struct io_pgtable_ops' has no member named 'unmap_pages'
     392 |  return ops->unmap_pages(ops, iova, pgsize, pgcount, gather);
         |            ^~
   drivers/iommu/apple-dart.c: At top level:
>> drivers/iommu/apple-dart.c:729:3: error: 'const struct iommu_ops' has no member named 'map_pages'
     729 |  .map_pages = apple_dart_map_pages,
         |   ^~~~~~~~~
>> drivers/iommu/apple-dart.c:729:15: error: initialization of 'int (*)(struct iommu_domain *, long unsigned int,  phys_addr_t,  size_t,  int,  gfp_t)' {aka 'int (*)(struct iommu_domain *, long unsigned int,  long long unsigned int,  unsigned int,  int,  unsigned int)'} from incompatible pointer type 'int (*)(struct iommu_domain *, long unsigned int,  phys_addr_t,  size_t,  size_t,  int,  gfp_t,  size_t *)' {aka 'int (*)(struct iommu_domain *, long unsigned int,  long long unsigned int,  unsigned int,  unsigned int,  int,  unsigned int,  unsigned int *)'} [-Werror=incompatible-pointer-types]
     729 |  .map_pages = apple_dart_map_pages,
         |               ^~~~~~~~~~~~~~~~~~~~
   drivers/iommu/apple-dart.c:729:15: note: (near initialization for 'apple_dart_iommu_ops.map')
>> drivers/iommu/apple-dart.c:730:3: error: 'const struct iommu_ops' has no member named 'unmap_pages'
     730 |  .unmap_pages = apple_dart_unmap_pages,
         |   ^~~~~~~~~~~
>> drivers/iommu/apple-dart.c:730:17: error: initialization of 'size_t (*)(struct iommu_domain *, long unsigned int,  size_t,  struct iommu_iotlb_gather *)' {aka 'unsigned int (*)(struct iommu_domain *, long unsigned int,  unsigned int,  struct iommu_iotlb_gather *)'} from incompatible pointer type 'size_t (*)(struct iommu_domain *, long unsigned int,  size_t,  size_t,  struct iommu_iotlb_gather *)' {aka 'unsigned int (*)(struct iommu_domain *, long unsigned int,  unsigned int,  unsigned int,  struct iommu_iotlb_gather *)'} [-Werror=incompatible-pointer-types]
     730 |  .unmap_pages = apple_dart_unmap_pages,
         |                 ^~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/apple-dart.c:730:17: note: (near initialization for 'apple_dart_iommu_ops.unmap')
   drivers/iommu/apple-dart.c: In function 'apple_dart_unmap_pages':
   drivers/iommu/apple-dart.c:393:1: error: control reaches end of non-void function [-Werror=return-type]
     393 | }
         | ^
   drivers/iommu/apple-dart.c: In function 'apple_dart_map_pages':
   drivers/iommu/apple-dart.c:382:1: error: control reaches end of non-void function [-Werror=return-type]
     382 | }
         | ^
   cc1: some warnings being treated as errors


vim +380 drivers/iommu/apple-dart.c

   368	
   369	static int apple_dart_map_pages(struct iommu_domain *domain, unsigned long iova,
   370					phys_addr_t paddr, size_t pgsize,
   371					size_t pgcount, int prot, gfp_t gfp,
   372					size_t *mapped)
   373	{
   374		struct apple_dart_domain *dart_domain = to_dart_domain(domain);
   375		struct io_pgtable_ops *ops = dart_domain->pgtbl_ops;
   376	
   377		if (!ops)
   378			return -ENODEV;
   379	
 > 380		return ops->map_pages(ops, iova, paddr, pgsize, pgcount, prot, gfp,
   381				      mapped);
   382	}
   383	
   384	static size_t apple_dart_unmap_pages(struct iommu_domain *domain,
   385					     unsigned long iova, size_t pgsize,
   386					     size_t pgcount,
   387					     struct iommu_iotlb_gather *gather)
   388	{
   389		struct apple_dart_domain *dart_domain = to_dart_domain(domain);
   390		struct io_pgtable_ops *ops = dart_domain->pgtbl_ops;
   391	
 > 392		return ops->unmap_pages(ops, iova, pgsize, pgcount, gather);
   393	}
   394	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux