[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'?
kernel test robot
lkp at intel.com
Sat Apr 3 18:25:17 BST 2021
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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 29906 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210404/53fb1f03/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list