From: kernel test robot <lkp@intel.com>
To: Marc Zyngier <maz@kernel.org>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org
Subject: [arm-platforms:hack/m1-pcie 15/15] drivers/iommu/apple-dart-iommu.c:801:29: error: 'pci_bus_type' undeclared; did you mean 'pci_pcie_type'?
Date: Sun, 4 Apr 2021 01:25:17 +0800 [thread overview]
Message-ID: <202104040112.wrVj0bRL-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4489 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/m1-pcie
head: 1fd2c9634dd24fba323baba52200de18e4d3f4ee
commit: 1fd2c9634dd24fba323baba52200de18e4d3f4ee [15/15] WIP
config: sparc64-randconfig-r021-20210404 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.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/maz/arm-platforms.git/commit/?id=1fd2c9634dd24fba323baba52200de18e4d3f4ee
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms hack/m1-pcie
git checkout 1fd2c9634dd24fba323baba52200de18e4d3f4ee
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
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-iommu.c: In function 'apple_dart_probe':
>> drivers/iommu/apple-dart-iommu.c:801:29: error: 'pci_bus_type' undeclared (first use in this function); did you mean 'pci_pcie_type'?
801 | if (dev->bus->iommu_ops != pci_bus_type.iommu_ops) {
| ^~~~~~~~~~~~
| pci_pcie_type
drivers/iommu/apple-dart-iommu.c:801:29: note: each undeclared identifier is reported only once for each function it appears in
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS || MCOUNT
Selected by
- LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS && !PPC && !ARM && !S390 && !MICROBLAZE && !ARC && !X86
vim +801 drivers/iommu/apple-dart-iommu.c
730
731 static int apple_dart_probe(struct platform_device *pdev)
732 {
733 int ret;
734 int i;
735 struct resource *res;
736 struct apple_dart *dart;
737 struct device *dev = &pdev->dev;
738
739 dev_warn(&pdev->dev, "probing\n");
740 dart = devm_kzalloc(dev, sizeof(*dart), GFP_KERNEL);
741 if (!dart)
742 return -ENOMEM;
743
744 dart->dev = dev;
745 spin_lock_init(&dart->lock);
746
747 if (pdev->num_resources < 1)
748 return -ENODEV;
749
750 res = platform_get_resource(pdev, IORESOURCE_MEM, i);
751 if (resource_size(res) < 0x4000) {
752 dev_err(dev, "MMIO region too small (%pr)\n", res);
753 return -EINVAL;
754 }
755
756 dart->regs = devm_ioremap_resource(dev, res);
757 if (IS_ERR(dart->regs))
758 return PTR_ERR(dart->regs);
759
760 ret = devm_clk_bulk_get_all(dev, &dart->clks);
761 if (ret < 0)
762 return ret;
763 dart->num_clks = ret;
764
765 ret = clk_bulk_prepare_enable(dart->num_clks, dart->clks);
766 if (ret)
767 return ret;
768
769 ret = apple_dart_hw_reset(dart);
770 if (ret)
771 return ret;
772
773 dart->irq = platform_get_irq(pdev, 0);
774 if (dart->irq < 0)
775 return -ENODEV;
776
777 ret = devm_request_irq(dart->dev, dart->irq, apple_dart_irq,
778 IRQF_SHARED, "apple-dart fault handler", dart);
779 if (ret)
780 return ret;
781
782 platform_set_drvdata(pdev, dart);
783
784 ret = iommu_device_sysfs_add(&dart->iommu, dev, NULL, "apple-dart.%s",
785 dev_name(&pdev->dev));
786 if (ret)
787 return ret;
788
789 iommu_device_set_ops(&dart->iommu, &apple_dart_iommu_ops);
790 iommu_device_set_fwnode(&dart->iommu, dev->fwnode);
791
792 ret = iommu_device_register(&dart->iommu);
793 if (ret)
794 return ret;
795
796 if (dev->bus->iommu_ops != &apple_dart_iommu_ops) {
797 ret = bus_set_iommu(dev->bus, &apple_dart_iommu_ops);
798 if (ret)
799 return ret;
800 }
> 801 if (dev->bus->iommu_ops != pci_bus_type.iommu_ops) {
802 ret = bus_set_iommu(&pci_bus_type, &apple_dart_iommu_ops);
803 if (ret)
804 return ret;
805 }
806
807 dev_warn(&pdev->dev, "probed\n");
808 return 0;
809 }
810
---
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: 29906 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
reply other threads:[~2021-04-03 17:27 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=202104040112.wrVj0bRL-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=maz@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).