drivers/iommu/hyperv/hv-iommu-guest.c:574:undefined reference to `pci_request_acs'
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: becb95e45ef0dda9ffb35156d909d3da7a2789c3 commit: 2690d4156b51f7e9fe874dd480fc928594615552 [15752/16158] iommu/hyperv: Add para-virtualized IOMMU support for Hyper-V guest config: x86_64-buildonly-randconfig-1004-20261010 (https://download.01.org/0day-ci/archive/20261011/[email protected]/config) compiler: gcc-13 (Debian 13.3.0-16) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261011/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
ld: drivers/iommu/hyperv/hv-iommu-guest.o: in function `hv_iommu_init':
>> drivers/iommu/hyperv/hv-iommu-guest.c:574:(.init.text+0x17c): undefined reference to `pci_request_acs'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PM_GENERIC_DOMAINS_OF
Depends on [n]: PM_GENERIC_DOMAINS [=y] && OF [=n]
Selected by [y]:
- COMMON_CLK_MT8173_MFGTOP [=y] && COMMON_CLK [=y] && (ARCH_MEDIATEK || COMPILE_TEST [=y]) && COMMON_CLK_MT8173 [=y] && PM [=y]
vim +574 drivers/iommu/hyperv/hv-iommu-guest.c
531
532 int __init hv_iommu_init(void)
533 {
534 u64 status;
535 int ret = 0;
536 struct hv_iommu_dev *hv_iommu = NULL;
537 struct hv_output_get_iommu_capabilities hv_iommu_cap = {0};
538
539 if (no_iommu || iommu_detected)
540 return -ENODEV;
541
542 if (!hv_is_hyperv_initialized())
543 return -ENODEV;
544
545 status = hv_iommu_detect(&hv_iommu_cap);
546 if (!hv_result_success(status)) {
547 if (hv_result(status) == HV_STATUS_INVALID_HYPERCALL_CODE)
548 return -ENODEV;
549
550 hv_status_err(status, "HVCALL_GET_IOMMU_CAPABILITIES failed\n");
551 return hv_result_to_errno(status);
552 }
553
554 if (!hv_iommu_present(hv_iommu_cap.iommu_cap))
555 return -ENODEV;
556
557 if (!hv_iommu_s1_domain_supported(hv_iommu_cap.iommu_cap)) {
558 pr_err("stage-1 translation not supported: cap=%#llx\n",
559 hv_iommu_cap.iommu_cap);
560 return -ENODEV;
561 }
562
563 /*
564 * Require the base page size. The domain page-size bitmap is later
565 * restricted to the sizes supported by both iommupt and Hyper-V.
566 */
567 if (!(hv_iommu_cap.pgsize_bitmap & PAGE_SIZE)) {
568 pr_err("unsupported page sizes: pgsize_bitmap=0x%llx\n",
569 hv_iommu_cap.pgsize_bitmap);
570 return -ENODEV;
571 }
572
573 iommu_detected = 1;
> 574 pci_request_acs();
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki