iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jean-Philippe Brucker <jean-philippe@linaro.org>,
	rjw@rjwysocki.net, lenb@kernel.org, joro@8bytes.org,
	mst@redhat.com
Cc: kbuild-all@lists.01.org, linux-acpi@vger.kernel.org,
	will@kernel.org, clang-built-linux@googlegroups.com,
	iommu@lists.linux-foundation.org, catalin.marinas@arm.com,
	dwmw2@infradead.org
Subject: Re: [PATCH v3 2/6] ACPI: Move IOMMU setup code out of IORT
Date: Thu, 3 Jun 2021 04:06:18 +0800	[thread overview]
Message-ID: <202106030417.97asL7dA-lkp@intel.com> (raw)
In-Reply-To: <20210602154444.1077006-3-jean-philippe@linaro.org>

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

Hi Jean-Philippe,

I love your patch! Yet something to improve:

[auto build test ERROR on pm/linux-next]
[also build test ERROR on iommu/next arm64/for-next/core linus/master v5.13-rc4 next-20210602]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Jean-Philippe-Brucker/Add-support-for-ACPI-VIOT/20210602-235849
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: x86_64-randconfig-a012-20210602 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d41cb6bb2607fa5c7a9df2b3dab361353657d225)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/0day-ci/linux/commit/937da71a81108243877fb1f0f568e56a08a62c50
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Jean-Philippe-Brucker/Add-support-for-ACPI-VIOT/20210602-235849
        git checkout 937da71a81108243877fb1f0f568e56a08a62c50
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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/acpi/scan.c:1540:26: error: no member named 'ops' in 'struct iommu_fwspec'
           return fwspec ? fwspec->ops : NULL;
                           ~~~~~~  ^
>> drivers/acpi/scan.c:1564:9: error: implicit declaration of function 'iommu_probe_device' [-Werror,-Wimplicit-function-declaration]
                   err = iommu_probe_device(dev);
                         ^
   2 errors generated.


vim +1540 drivers/acpi/scan.c

  1535	
  1536	static inline const struct iommu_ops *acpi_iommu_fwspec_ops(struct device *dev)
  1537	{
  1538		struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev);
  1539	
> 1540		return fwspec ? fwspec->ops : NULL;
  1541	}
  1542	
  1543	static const struct iommu_ops *acpi_iommu_configure_id(struct device *dev,
  1544							       const u32 *id_in)
  1545	{
  1546		int err;
  1547		const struct iommu_ops *ops;
  1548	
  1549		/*
  1550		 * If we already translated the fwspec there is nothing left to do,
  1551		 * return the iommu_ops.
  1552		 */
  1553		ops = acpi_iommu_fwspec_ops(dev);
  1554		if (ops)
  1555			return ops;
  1556	
  1557		err = iort_iommu_configure_id(dev, id_in);
  1558	
  1559		/*
  1560		 * If we have reason to believe the IOMMU driver missed the initial
  1561		 * add_device callback for dev, replay it to get things in order.
  1562		 */
  1563		if (!err && dev->bus && !device_iommu_mapped(dev))
> 1564			err = iommu_probe_device(dev);
  1565	
  1566		/* Ignore all other errors apart from EPROBE_DEFER */
  1567		if (err == -EPROBE_DEFER) {
  1568			return ERR_PTR(err);
  1569		} else if (err) {
  1570			dev_dbg(dev, "Adding to IOMMU failed: %d\n", err);
  1571			return NULL;
  1572		}
  1573		return acpi_iommu_fwspec_ops(dev);
  1574	}
  1575	

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

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

[-- Attachment #3: Type: text/plain, Size: 156 bytes --]

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

  reply	other threads:[~2021-06-02 20:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02 15:44 [PATCH v3 0/6] Add support for ACPI VIOT Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 1/6] ACPI: arm64: Move DMA setup operations out of IORT Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 2/6] ACPI: Move IOMMU setup code " Jean-Philippe Brucker
2021-06-02 20:06   ` kernel test robot [this message]
2021-06-03  7:26     ` Jean-Philippe Brucker
2021-06-04 15:22       ` Joerg Roedel
2021-06-10  7:26         ` Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 3/6] ACPI: Add driver for the VIOT table Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 4/6] iommu/dma: Pass address limit rather than size to iommu_setup_dma_ops() Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 5/6] iommu/dma: Simplify calls " Jean-Philippe Brucker
2021-06-02 15:44 ` [PATCH v3 6/6] iommu/virtio: Enable x86 support Jean-Philippe Brucker

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=202106030417.97asL7dA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=catalin.marinas@arm.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=dwmw2@infradead.org \
    --cc=iommu@lists.linux-foundation.org \
    --cc=jean-philippe@linaro.org \
    --cc=joro@8bytes.org \
    --cc=kbuild-all@lists.01.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=rjw@rjwysocki.net \
    --cc=will@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).