From: Luck, Tony Date: Wed, 16 Dec 2009 22:59:29 +0000 (+0000) Subject: intel-iommu: Fix section mismatch dmar_ir_support() uses dmar_tbl. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0b8973a81876d90f916507ac40d1381068dc986a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git intel-iommu: 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. Signed-off-by: Tony Luck Signed-off-by: David Woodhouse --- diff --git a/drivers/pci/dmar.c b/drivers/pci/dmar.c index 83aae4747594..ffe22bc3ac8e 100644 --- a/drivers/pci/dmar.c +++ b/drivers/pci/dmar.c @@ -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;