All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hch-misc:iommu-cleanup 17/18] drivers/iommu/iommu.c:2706:20: error: 'const struct iommu_ops' has no member named 'domain_set_pgtable_quirk'; did you mean
Date: Sun, 14 Mar 2021 21:45:36 +0800	[thread overview]
Message-ID: <202103142131.5oGKkLpr-lkp@intel.com> (raw)

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

tree:   git://git.infradead.org/users/hch/misc.git iommu-cleanup
head:   5bb13e80e571ad3a1e1c69f1181bbb892b936ccc
commit: 1dc0ff3cff1d641efc5400cde505ed9e1b2181c3 [17/18] iommu: remove DOMAIN_ATTR_IO_PGTABLE_CFG
config: i386-randconfig-s001-20210314 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-262-g5e674421-dirty
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc iommu-cleanup
        git checkout 1dc0ff3cff1d641efc5400cde505ed9e1b2181c3
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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/iommu.c: In function 'iommu_set_pgtable_quirks':
>> drivers/iommu/iommu.c:2706:20: error: 'const struct iommu_ops' has no member named 'domain_set_pgtable_quirk'; did you mean 'set_pgtable_quirks'?
    2706 |  if (!domain->ops->domain_set_pgtable_quirk)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~
         |                    set_pgtable_quirks
   drivers/iommu/iommu.c:2708:22: error: 'const struct iommu_ops' has no member named 'domain_set_pgtable_quirk'; did you mean 'set_pgtable_quirks'?
    2708 |  return domain->ops->domain_set_pgtable_quirk(domain, quirk);
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~
         |                      set_pgtable_quirks
   drivers/iommu/iommu.c:2709:1: error: control reaches end of non-void function [-Werror=return-type]
    2709 | }
         | ^
   cc1: some warnings being treated as errors


vim +2706 drivers/iommu/iommu.c

  2700	
  2701	int iommu_set_pgtable_quirks(struct iommu_domain *domain,
  2702			unsigned long quirk)
  2703	{
  2704		if (domain->type != IOMMU_DOMAIN_UNMANAGED)
  2705			return -EINVAL;
> 2706		if (!domain->ops->domain_set_pgtable_quirk)
  2707			return -EINVAL;
  2708		return domain->ops->domain_set_pgtable_quirk(domain, quirk);
  2709	}
  2710	EXPORT_SYMBOL_GPL(iommu_set_pgtable_quirks);
  2711	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36277 bytes --]

                 reply	other threads:[~2021-03-14 13:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202103142131.5oGKkLpr-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 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.