intel-iommu: Fix section mismatch dmar_ir_support() uses dmar_tbl.
authorLuck, Tony <tony.luck@intel.com>
Wed, 16 Dec 2009 22:59:29 +0000 (22:59 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 31 Dec 2009 19:42:05 +0000 (19:42 +0000)
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.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/dmar.c

index 83aae47..ffe22bc 100644 (file)
@@ -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;