]> git.karo-electronics.de Git - karo-tx-linux.git/commit
intel-iommu: Fix __init section missmatch of dmar_parse_rmrr_atsr_dev
authorWitold Baryluk <baryluk@smp.if.uj.edu.pl>
Wed, 30 Nov 2011 04:07:20 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Nov 2011 04:13:38 +0000 (15:13 +1100)
commitb25d0fcf543fe3338fc75393780b31e244e7b42e
tree68c012d8715cd519e4d1b71533bad98086c0ad98
parente7b3824cc82ba4fd402d60ac5f7cbd0c4f83607b
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.

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