All of lore.kernel.org
 help / color / mirror / Atom feed
* [km13park-linux-1:master 1/3] drivers/iommu/intel/irq_remapping.c:1466: undefined reference to `intel_cap_audit'
@ 2020-12-27 12:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-27 12:58 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/km13park/linux-1.git master
head:   b957ddbc7aa445b924b3a6b780fd47f58e3683ba
commit: 971e67f7698c5de966feec263bb1f61d12610027 [1/3] iommu/vt-d: Audit IOMMU Capabilities and add helper functions
config: x86_64-randconfig-c002-20201221 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/km13park/linux-1/commit/971e67f7698c5de966feec263bb1f61d12610027
        git remote add km13park-linux-1 https://github.com/km13park/linux-1.git
        git fetch --no-tags km13park-linux-1 master
        git checkout 971e67f7698c5de966feec263bb1f61d12610027
        # save the attached .config to linux build tree
        make W=1 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 >>):

   ld: drivers/iommu/intel/irq_remapping.o: in function `dmar_ir_add':
>> drivers/iommu/intel/irq_remapping.c:1466: undefined reference to `intel_cap_audit'
>> ld: drivers/iommu/intel/irq_remapping.c:1466: undefined reference to `intel_cap_audit'
>> ld: drivers/iommu/intel/irq_remapping.c:1466: undefined reference to `intel_cap_audit'
>> ld: drivers/iommu/intel/irq_remapping.c:1466: undefined reference to `intel_cap_audit'
   ld: drivers/iommu/intel/irq_remapping.o: in function `intel_prepare_irq_remapping':
   drivers/iommu/intel/irq_remapping.c:746: undefined reference to `intel_cap_audit'


vim +1466 drivers/iommu/intel/irq_remapping.c

  1457	
  1458	/*
  1459	 * Support of Interrupt Remapping Unit Hotplug
  1460	 */
  1461	static int dmar_ir_add(struct dmar_drhd_unit *dmaru, struct intel_iommu *iommu)
  1462	{
  1463		int ret;
  1464		int eim = x2apic_enabled();
  1465	
> 1466		ret = intel_cap_audit(CAP_AUDIT_HOTPLUG_IRQR, iommu);
  1467		if (ret)
  1468			return ret;
  1469	
  1470		if (eim && !ecap_eim_support(iommu->ecap)) {
  1471			pr_info("DRHD %Lx: EIM not supported by DRHD, ecap %Lx\n",
  1472				iommu->reg_phys, iommu->ecap);
  1473			return -ENODEV;
  1474		}
  1475	
  1476		if (ir_parse_ioapic_hpet_scope(dmaru->hdr, iommu)) {
  1477			pr_warn("DRHD %Lx: failed to parse managed IOAPIC/HPET\n",
  1478				iommu->reg_phys);
  1479			return -ENODEV;
  1480		}
  1481	
  1482		/* TODO: check all IOAPICs are covered by IOMMU */
  1483	
  1484		/* Setup Interrupt-remapping now. */
  1485		ret = intel_setup_irq_remapping(iommu);
  1486		if (ret) {
  1487			pr_err("Failed to setup irq remapping for %s\n",
  1488			       iommu->name);
  1489			intel_teardown_irq_remapping(iommu);
  1490			ir_remove_ioapic_hpet_scope(iommu);
  1491		} else {
  1492			iommu_enable_irq_remapping(iommu);
  1493		}
  1494	
  1495		return ret;
  1496	}
  1497	

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-27 12:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-27 12:58 [km13park-linux-1:master 1/3] drivers/iommu/intel/irq_remapping.c:1466: undefined reference to `intel_cap_audit' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.