]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
intel-iommu: Fix __init section missmatch of dmar_parse_rmrr_atsr_dev
authorWitold Baryluk <baryluk@smp.if.uj.edu.pl>
Fri, 2 Dec 2011 03:08:46 +0000 (14:08 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 5 Dec 2011 04:19:08 +0000 (15:19 +1100)
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@smp.if.uj.edu.pl>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Allen Kay <allen.m.kay@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/iommu/intel-iommu.c

index e918f72da6a865d0ead1a80e73b4911f5946f0ca..7a02a8e1cd82d4d00711bfc25bc69a36f38d0d4c 100644 (file)
@@ -3542,7 +3542,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;