[PATCH] intel-iommu: Fix __init section missmatch ofdmar_parse_rmrr_atsr_dev

From: Witold Baryluk
Date: Fri Nov 11 2011 - 15:59:17 EST


dmar_parse_rmrr_atsr_dev() (drivers/iommu/dmar.c)
is called from dmar_dev_scope_init() (drivers/iommu/intel-iommu.c),
but dmar_dev_scope_init() is annotated with __init,
when dmar_parse_rmrr_atsr_dev() is not, causing full section
missmatch analsysis to abort compilation.

Fix problem by adding __init annotation to dmar_parse_rmrr_atsr_dev.

Signed-off-by: Witold Baryluk <baryluk@xxxxxxxxxxxxxxxx>
---
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index c0c7820..a004c39 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -3524,7 +3524,7 @@ found:
return 0;
}

-int dmar_parse_rmrr_atsr_dev(void)
+int __init dmar_parse_rmrr_atsr_dev(void)
{
struct dmar_rmrr_unit *rmrr, *rmrr_n;
struct dmar_atsr_unit *atsr, *atsr_n;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/