intel-iommu: make init_dmars() static
authorMark McLoughlin <markmc@redhat.com>
Thu, 20 Nov 2008 14:21:13 +0000 (14:21 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Sat, 3 Jan 2009 10:57:34 +0000 (11:57 +0100)
init_dmars() is not used outside of drivers/pci/intel-iommu.c

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c
include/linux/dma_remapping.h

index 8e5a445ba93a74f927e73e48e24b20142e0a6435..95ae3a9aea8a42ec1554c473f0aee5ab0d9c9aec 100644 (file)
@@ -1589,7 +1589,7 @@ static inline void iommu_prepare_isa(void)
 }
 #endif /* !CONFIG_DMAR_FLPY_WA */
 
-int __init init_dmars(void)
+static int __init init_dmars(void)
 {
        struct dmar_drhd_unit *drhd;
        struct dmar_rmrr_unit *rmrr;
index 952df39c989d6bcb4624537c256b4c264c7345f5..cf92c4924b8ca25c37212c22dbac44718c956cbf 100644 (file)
@@ -141,7 +141,6 @@ struct device_domain_info {
        struct dmar_domain *domain; /* pointer to domain */
 };
 
-extern int init_dmars(void);
 extern void free_dmar_iommu(struct intel_iommu *iommu);
 
 extern int dmar_disabled;