mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	"Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Subject: [rmk-arm:cex7 98/98] drivers/bus/fsl-mc/fsl-mc-bus.c:167:44: error: no member named 'iommu_fwnode' in 'struct iommu_fwspec'
Date: Fri, 29 Oct 2021 08:11:46 +0800	[thread overview]
Message-ID: <202110290837.p5X9B7RQ-lkp@intel.com> (raw)

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

tree:   git://git.armlinux.org.uk/~rmk/linux-arm cex7
head:   d0004d6a9ca8abe2a1fa2e8aa2e3c609a387e78a
commit: d0004d6a9ca8abe2a1fa2e8aa2e3c609a387e78a [98/98] bus: fsl-mc: add custom .dma_configure implementation
config: arm-randconfig-r006-20211028 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
        git fetch --no-tags rmk-arm cex7
        git checkout d0004d6a9ca8abe2a1fa2e8aa2e3c609a387e78a
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/bus/fsl-mc/

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/bus/fsl-mc/fsl-mc-bus.c:167:44: error: no member named 'iommu_fwnode' in 'struct iommu_fwspec'
           iommu_ops = iommu_ops_from_fwnode(fwspec->iommu_fwnode);
                                             ~~~~~~  ^
   drivers/bus/fsl-mc/fsl-mc-bus.c:171:39: error: no member named 'iommu_fwnode' in 'struct iommu_fwspec'
           ret = iommu_fwspec_init(dev, fwspec->iommu_fwnode, iommu_ops);
                                        ~~~~~~  ^
>> drivers/bus/fsl-mc/fsl-mc-bus.c:182:9: error: implicit declaration of function 'iommu_probe_device' [-Werror,-Wimplicit-function-declaration]
                   ret = iommu_probe_device(dev);
                         ^
   3 errors generated.


vim +167 drivers/bus/fsl-mc/fsl-mc-bus.c

   137	
   138	static int fsl_mc_dma_configure(struct device *dev)
   139	{
   140		struct device *dma_dev = dev;
   141		struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev);
   142		u32 input_id = mc_dev->icid;
   143		struct iommu_fwspec *fwspec;
   144		const struct iommu_ops *iommu_ops;
   145		int ret;
   146	
   147		/* Skip DMA setup for devices that are not DMA masters */
   148		if (dev->type == &fsl_mc_bus_dpmcp_type ||
   149		    dev->type == &fsl_mc_bus_dpbp_type ||
   150		    dev->type == &fsl_mc_bus_dpcon_type ||
   151		    dev->type == &fsl_mc_bus_dpio_type)
   152			return 0;
   153	
   154		while (dev_is_fsl_mc(dma_dev))
   155			dma_dev = dma_dev->parent;
   156	
   157	
   158	#if 0
   159		if (dev_of_node(dma_dev))
   160			return of_dma_configure_id(dev, dma_dev->of_node, 0, &input_id);
   161	
   162		return acpi_dma_configure_id(dev, DEV_DMA_COHERENT, &input_id);
   163	#else
   164		fwspec = dev_iommu_fwspec_get(dma_dev);
   165		if (!fwspec)
   166			return -ENODEV;
 > 167		iommu_ops = iommu_ops_from_fwnode(fwspec->iommu_fwnode);
   168		if (!iommu_ops)
   169			return -ENODEV;
   170	
   171		ret = iommu_fwspec_init(dev, fwspec->iommu_fwnode, iommu_ops);
   172		if (ret)
   173			return ret;
   174	
   175		ret = iommu_fwspec_add_ids(dev, &input_id, 1);
   176		if (ret) {
   177			iommu_fwspec_free(dev);
   178			return ret;
   179		}
   180	
   181		if (!device_iommu_mapped(dev)) {
 > 182			ret = iommu_probe_device(dev);
   183			if (ret) {
   184				iommu_fwspec_free(dev);
   185				return ret;
   186			}
   187		}
   188	
   189		arch_setup_dma_ops(dev, 0, *dma_dev->dma_mask + 1, iommu_ops, true);
   190	
   191		return 0;
   192	#endif
   193	}
   194	

---
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: 35833 bytes --]

                 reply	other threads:[~2021-10-29  0:12 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=202110290837.p5X9B7RQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=laurentiu.tudor@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=rmk+kernel@armlinux.org.uk \
    /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

all inboxes | Powered by JetHome®