summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2008-11-20 16:49:50 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 11:57:35 +0100
commit2abd7e167c1b281f99bb58d302225872bfae9123 (patch)
treef4583028e1f80d31b983004ef82269fe50358c7f /drivers/pci
parentintel-iommu: kill off duplicate def of dmar_disabled (diff)
downloadlinux-2abd7e167c1b281f99bb58d302225872bfae9123.tar.xz
linux-2abd7e167c1b281f99bb58d302225872bfae9123.zip
intel-iommu: move iommu_prepare_gfx_mapping() out of dma_remapping.h
Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/intel-iommu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index f23a02054bf7..c1c59a619650 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -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