All of lore.kernel.org
 help / color / mirror / Atom feed
* [luxis1999-iommufd:iommufd-v5.17-rc4 28/56] drivers/iommu/iommufd/selftest.c:183:25: error: initialization of 'struct iommu_group * (*)(struct device *)' from incompatible pointer type 'phys_addr_t (*)(struct iommu_domain *, dma_addr_t)' {aka 'unsigned int (*)(struct iommu_domain *, unsigned int)'}
@ 2022-02-15 17:42 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-15 17:42 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: kbuild-all, linux-kernel, Liu Yi L, Nicolin Chen

tree:   https://github.com/luxis1999/iommufd iommufd-v5.17-rc4
head:   94542ac92f6f23784d73c13b39dc95cc4012181c
commit: 047031aaa50c5daed9c24fa0701f7016d4ff6934 [28/56] iommufd: Add a selftest
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220216/202202160138.nI8GEZY7-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 11.2.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://github.com/luxis1999/iommufd/commit/047031aaa50c5daed9c24fa0701f7016d4ff6934
        git remote add luxis1999-iommufd https://github.com/luxis1999/iommufd
        git fetch --no-tags luxis1999-iommufd iommufd-v5.17-rc4
        git checkout 047031aaa50c5daed9c24fa0701f7016d4ff6934
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   drivers/iommu/iommufd/selftest.c: In function 'mock_domain_alloc':
   drivers/iommu/iommufd/selftest.c:69:26: error: assignment to 'const struct iommu_domain_ops *' from incompatible pointer type 'const struct iommu_ops *' [-Werror=incompatible-pointer-types]
      69 |         mock->domain.ops = &domain_mock_ops;
         |                          ^
   drivers/iommu/iommufd/selftest.c: At top level:
   drivers/iommu/iommufd/selftest.c:180:10: error: 'const struct iommu_ops' has no member named 'domain_free'
     180 |         .domain_free = mock_domain_free,
         |          ^~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:180:24: error: initialization of 'struct iommu_device * (*)(struct device *)' from incompatible pointer type 'void (*)(struct iommu_domain *)' [-Werror=incompatible-pointer-types]
     180 |         .domain_free = mock_domain_free,
         |                        ^~~~~~~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:180:24: note: (near initialization for 'domain_mock_ops.probe_device')
   drivers/iommu/iommufd/selftest.c:181:10: error: 'const struct iommu_ops' has no member named 'map_pages'
     181 |         .map_pages = mock_domain_map_pages,
         |          ^~~~~~~~~
   drivers/iommu/iommufd/selftest.c:181:22: error: initialization of 'void (*)(struct device *)' 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,  unsigned int,  unsigned int,  unsigned int,  int,  unsigned int,  unsigned int *)'} [-Werror=incompatible-pointer-types]
     181 |         .map_pages = mock_domain_map_pages,
         |                      ^~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:181:22: note: (near initialization for 'domain_mock_ops.release_device')
   drivers/iommu/iommufd/selftest.c:182:10: error: 'const struct iommu_ops' has no member named 'unmap_pages'
     182 |         .unmap_pages = mock_domain_unmap_pages,
         |          ^~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:182:24: error: initialization of 'void (*)(struct device *)' 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]
     182 |         .unmap_pages = mock_domain_unmap_pages,
         |                        ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:182:24: note: (near initialization for 'domain_mock_ops.probe_finalize')
   drivers/iommu/iommufd/selftest.c:183:10: error: 'const struct iommu_ops' has no member named 'iova_to_phys'
     183 |         .iova_to_phys = mock_domain_iova_to_phys,
         |          ^~~~~~~~~~~~
>> drivers/iommu/iommufd/selftest.c:183:25: error: initialization of 'struct iommu_group * (*)(struct device *)' from incompatible pointer type 'phys_addr_t (*)(struct iommu_domain *, dma_addr_t)' {aka 'unsigned int (*)(struct iommu_domain *, unsigned int)'} [-Werror=incompatible-pointer-types]
     183 |         .iova_to_phys = mock_domain_iova_to_phys,
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:183:25: note: (near initialization for 'domain_mock_ops.device_group')
   drivers/iommu/iommufd/selftest.c: In function 'get_md_pagetable':
   drivers/iommu/iommufd/selftest.c:198:31: warning: comparison of distinct pointer types lacks a cast
     198 |         if (hwpt->domain->ops != &domain_mock_ops) {
         |                               ^~
   cc1: some warnings being treated as errors


vim +183 drivers/iommu/iommufd/selftest.c

   176	
   177	static const struct iommu_ops domain_mock_ops = {
   178		.pgsize_bitmap = MOCK_IO_PAGE_SIZE,
   179		.domain_alloc = mock_domain_alloc,
   180		.domain_free = mock_domain_free,
   181		.map_pages = mock_domain_map_pages,
   182		.unmap_pages = mock_domain_unmap_pages,
 > 183		.iova_to_phys = mock_domain_iova_to_phys,
   184	};
   185	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [luxis1999-iommufd:iommufd-v5.17-rc4 28/56] drivers/iommu/iommufd/selftest.c:183:25: error: initialization of 'struct iommu_group * (*)(struct device *)' from incompatible pointer type 'phys_addr_t (*)(struct iommu_domain *, dma_addr_t)' {aka 'unsigned int (*)(struct iommu_domain *, unsigned int)'}
@ 2022-02-15 17:42 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-15 17:42 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5480 bytes --]

tree:   https://github.com/luxis1999/iommufd iommufd-v5.17-rc4
head:   94542ac92f6f23784d73c13b39dc95cc4012181c
commit: 047031aaa50c5daed9c24fa0701f7016d4ff6934 [28/56] iommufd: Add a selftest
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220216/202202160138.nI8GEZY7-lkp(a)intel.com/config)
compiler: mips-linux-gcc (GCC) 11.2.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://github.com/luxis1999/iommufd/commit/047031aaa50c5daed9c24fa0701f7016d4ff6934
        git remote add luxis1999-iommufd https://github.com/luxis1999/iommufd
        git fetch --no-tags luxis1999-iommufd iommufd-v5.17-rc4
        git checkout 047031aaa50c5daed9c24fa0701f7016d4ff6934
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   drivers/iommu/iommufd/selftest.c: In function 'mock_domain_alloc':
   drivers/iommu/iommufd/selftest.c:69:26: error: assignment to 'const struct iommu_domain_ops *' from incompatible pointer type 'const struct iommu_ops *' [-Werror=incompatible-pointer-types]
      69 |         mock->domain.ops = &domain_mock_ops;
         |                          ^
   drivers/iommu/iommufd/selftest.c: At top level:
   drivers/iommu/iommufd/selftest.c:180:10: error: 'const struct iommu_ops' has no member named 'domain_free'
     180 |         .domain_free = mock_domain_free,
         |          ^~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:180:24: error: initialization of 'struct iommu_device * (*)(struct device *)' from incompatible pointer type 'void (*)(struct iommu_domain *)' [-Werror=incompatible-pointer-types]
     180 |         .domain_free = mock_domain_free,
         |                        ^~~~~~~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:180:24: note: (near initialization for 'domain_mock_ops.probe_device')
   drivers/iommu/iommufd/selftest.c:181:10: error: 'const struct iommu_ops' has no member named 'map_pages'
     181 |         .map_pages = mock_domain_map_pages,
         |          ^~~~~~~~~
   drivers/iommu/iommufd/selftest.c:181:22: error: initialization of 'void (*)(struct device *)' 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,  unsigned int,  unsigned int,  unsigned int,  int,  unsigned int,  unsigned int *)'} [-Werror=incompatible-pointer-types]
     181 |         .map_pages = mock_domain_map_pages,
         |                      ^~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:181:22: note: (near initialization for 'domain_mock_ops.release_device')
   drivers/iommu/iommufd/selftest.c:182:10: error: 'const struct iommu_ops' has no member named 'unmap_pages'
     182 |         .unmap_pages = mock_domain_unmap_pages,
         |          ^~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:182:24: error: initialization of 'void (*)(struct device *)' 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]
     182 |         .unmap_pages = mock_domain_unmap_pages,
         |                        ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:182:24: note: (near initialization for 'domain_mock_ops.probe_finalize')
   drivers/iommu/iommufd/selftest.c:183:10: error: 'const struct iommu_ops' has no member named 'iova_to_phys'
     183 |         .iova_to_phys = mock_domain_iova_to_phys,
         |          ^~~~~~~~~~~~
>> drivers/iommu/iommufd/selftest.c:183:25: error: initialization of 'struct iommu_group * (*)(struct device *)' from incompatible pointer type 'phys_addr_t (*)(struct iommu_domain *, dma_addr_t)' {aka 'unsigned int (*)(struct iommu_domain *, unsigned int)'} [-Werror=incompatible-pointer-types]
     183 |         .iova_to_phys = mock_domain_iova_to_phys,
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/iommu/iommufd/selftest.c:183:25: note: (near initialization for 'domain_mock_ops.device_group')
   drivers/iommu/iommufd/selftest.c: In function 'get_md_pagetable':
   drivers/iommu/iommufd/selftest.c:198:31: warning: comparison of distinct pointer types lacks a cast
     198 |         if (hwpt->domain->ops != &domain_mock_ops) {
         |                               ^~
   cc1: some warnings being treated as errors


vim +183 drivers/iommu/iommufd/selftest.c

   176	
   177	static const struct iommu_ops domain_mock_ops = {
   178		.pgsize_bitmap = MOCK_IO_PAGE_SIZE,
   179		.domain_alloc = mock_domain_alloc,
   180		.domain_free = mock_domain_free,
   181		.map_pages = mock_domain_map_pages,
   182		.unmap_pages = mock_domain_unmap_pages,
 > 183		.iova_to_phys = mock_domain_iova_to_phys,
   184	};
   185	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-15 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15 17:42 [luxis1999-iommufd:iommufd-v5.17-rc4 28/56] drivers/iommu/iommufd/selftest.c:183:25: error: initialization of 'struct iommu_group * (*)(struct device *)' from incompatible pointer type 'phys_addr_t (*)(struct iommu_domain *, dma_addr_t)' {aka 'unsigned int (*)(struct iommu_domain *, unsigned int)'} kernel test robot
2022-02-15 17:42 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.