From: Sven Peter via iommu <iommu@lists.linux-foundation.org>
To: "Joerg Roedel" <jroedel@suse.de>
Cc: iommu@lists.linux-foundation.org, kbuild-all@lists.01.org,
kernel test robot <lkp@intel.com>
Subject: Re: [iommu:apple/dart 3/3] 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 'long unsigned int (*)(struct iommu_domain *, long unsigned int, long unsigned int, struct iom...
Date: Tue, 10 Aug 2021 08:09:53 +0200 [thread overview]
Message-ID: <0589c725-401b-482f-ba2b-0707c02ea40a@www.fastmail.com> (raw)
In-Reply-To: <202108100801.aYU4IXvh-lkp@intel.com>
Hi Joerg,
This happens because apple/dart is missing the "Optimizing iommu_[map/unmap] performance"
series which is already in the core branch [1].
The same commit works fine in iommu/next since that branch merges both iommu/core and
apple/dart.
Thanks,
Sven
[1] https://lore.kernel.org/lkml/1623850736-389584-1-git-send-email-quic_c_gdjako@quicinc.com/
On Tue, Aug 10, 2021, at 02:12, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
> apple/dart
> head: 05ce9d20d699b093dec985192a7db63b48f26ca2
> commit: 05ce9d20d699b093dec985192a7db63b48f26ca2 [3/3] iommu/dart: Add
> DART iommu driver
> config: sparc-allyesconfig (attached as .config)
> compiler: sparc64-linux-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/joro/iommu.git/commit/?id=05ce9d20d699b093dec985192a7db63b48f26ca2
> git remote add iommu
> https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
> git fetch --no-tags iommu apple/dart
> git checkout 05ce9d20d699b093dec985192a7db63b48f26ca2
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross
> ARCH=sparc
>
> 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/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, long 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, long unsigned int, long unsigned int, int, unsigned int, long
> 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 'long unsigned int (*)(struct iommu_domain
> *, long unsigned int, long 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 'long unsigned int (*)(struct iommu_domain *, long unsigned int,
> long unsigned int, long 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 +730 drivers/iommu/apple-dart.c
>
> 723
> 724 static const struct iommu_ops apple_dart_iommu_ops = {
> 725 .domain_alloc = apple_dart_domain_alloc,
> 726 .domain_free = apple_dart_domain_free,
> 727 .attach_dev = apple_dart_attach_dev,
> 728 .detach_dev = apple_dart_detach_dev,
> > 729 .map_pages = apple_dart_map_pages,
> > 730 .unmap_pages = apple_dart_unmap_pages,
> 731 .flush_iotlb_all = apple_dart_flush_iotlb_all,
> 732 .iotlb_sync = apple_dart_iotlb_sync,
> 733 .iotlb_sync_map = apple_dart_iotlb_sync_map,
> 734 .iova_to_phys = apple_dart_iova_to_phys,
> 735 .probe_device = apple_dart_probe_device,
> 736 .release_device = apple_dart_release_device,
> 737 .device_group = apple_dart_device_group,
> 738 .of_xlate = apple_dart_of_xlate,
> 739 .def_domain_type = apple_dart_def_domain_type,
> 740 .pgsize_bitmap = -1UL, /* Restricted during dart probe */
> 741 };
> 742
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
>
> Attachments:
> * .config.gz
--
Sven Peter
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
next prev parent reply other threads:[~2021-08-10 6:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-10 0:12 [iommu:apple/dart 3/3] 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 'long unsigned int (*)(struct iommu_domain *, long unsigned int, long unsigned int, struct iom kernel test robot
2021-08-10 6:09 ` Sven Peter via iommu [this message]
2021-08-12 11:29 ` Joerg Roedel
2021-08-16 6:48 ` Sven Peter via iommu
2021-08-16 16:23 ` Robin Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0589c725-401b-482f-ba2b-0707c02ea40a@www.fastmail.com \
--to=iommu@lists.linux-foundation.org \
--cc=jroedel@suse.de \
--cc=kbuild-all@lists.01.org \
--cc=lkp@intel.com \
--cc=sven@svenpeter.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox