Skip to contentSkip to conversation

intel-iommu: Fix __init section missmatch of dmar_parse_rmrr_atsr_dev

PATCH New Witold Baryluk 1 participant 1 message Nov 11, 2011 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 intel-iommu: Fix __init section missmatch of dmar_parse_rmrr_atsr_dev

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.

---

drivers/iommu/intel-iommu.c +1 -1
index c0c7820..a004c39 100644
@@ -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;