Skip to contentSkip to conversation

Fix section mismatch dmar_ir_support() uses dmar_tbl.

PATCH New [email protected] 1 participant 1 message Dec 16, 2009 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix section mismatch dmar_ir_support() uses dmar_tbl.

dmar_tbl is declared as __initdata, but dmar_ir_support() is not declared as an __init function. Fix is simple since the only caller of dmar_ir_support (intr_remapping_supported) is an __init function.

---

drivers/pci/dmar.c +1 -1
index 83aae47..ffe22bc 100644
@@ -1456,7 +1456,7 @@ int dmar_reenable_qi(struct intel_iommu *iommu)
 /*
  * Check interrupt remapping support in DMAR table description.
  */
-int dmar_ir_support(void)
+int __init dmar_ir_support(void)
 {
 	struct acpi_table_dmar *dmar;
 	dmar = (struct acpi_table_dmar *)dmar_tbl;