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 f23a02054bf76de66a5250110a7c5728b958cf4f..c1c59a61965018c22df53dd17d174a87915451f8 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 4ef5f6bc0d680aebbe1e13f4a03c7049b681caf4..7799a85614c178a45f904fef28c8da38574f4103 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