git » linux-kernel » commit 9a7625c

Fix dmar_ir_support() section mismatch

author Alberto Bertogli
2009-12-05 01:18:26 UTC
committer Alberto Bertogli
2010-05-24 23:37:02 UTC
parent 7e125f7b9cbfce4101191b8076d606c517a73066

Fix dmar_ir_support() section mismatch

dmar_ir_support() uses the static dmar_tbl variable, which is annotated as
__initdata. This causes a section mismatch because the function is not
annotated as __init.

Since it is only used by (__init) intr_remapping_supported(), fix the
mismatch by annotating it with __init.

The code was introduced by commit 074835f0, Sep 9 2009.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

include/linux/intel-iommu.h +1 -1

diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
index 9310c699a37..eee098da964 100644
--- a/include/linux/intel-iommu.h
+++ b/include/linux/intel-iommu.h
@@ -361,6 +361,6 @@ extern void qi_flush_dev_iotlb(struct intel_iommu *iommu, u16 sid, u16 qdep,
 
 extern int qi_submit_sync(struct qi_desc *desc, struct intel_iommu *iommu);
 
-extern int dmar_ir_support(void);
+extern int __init dmar_ir_support(void);
 
 #endif