intel-iommu: move iommu_prepare_gfx_mapping() out of dma_remapping.h
authorMark McLoughlin <markmc@redhat.com>
Thu, 20 Nov 2008 15:49:50 +0000 (15:49 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Sat, 3 Jan 2009 10:57:35 +0000 (11:57 +0100)
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 f23a020..c1c59a6 100644 (file)
@@ -1686,6 +1686,11 @@ static void __init iommu_prepare_gfx_mapping(void)
                        printk(KERN_ERR "IOMMU: mapping reserved region failed\n");
        }
 }
+#else /* !CONFIG_DMAR_GFX_WA */
+static inline void iommu_prepare_gfx_mapping(void)
+{
+       return;
+}
 #endif
 
 #ifdef CONFIG_DMAR_FLOPPY_WA
index 4ef5f6b..7799a85 100644 (file)
@@ -20,11 +20,4 @@ extern void free_dmar_iommu(struct intel_iommu *iommu);
 
 extern int dmar_disabled;
 
-#ifndef CONFIG_DMAR_GFX_WA
-static inline void iommu_prepare_gfx_mapping(void)
-{
-       return;
-}
-#endif /* !CONFIG_DMAR_GFX_WA */
-
 #endif