diff options
-rw-r--r-- | drivers/pci/intel-iommu.c | 5 | ||||
-rw-r--r-- | include/linux/dma_remapping.h | 7 |
2 files changed, 5 insertions, 7 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) | |||
1686 | printk(KERN_ERR "IOMMU: mapping reserved region failed\n"); | 1686 | printk(KERN_ERR "IOMMU: mapping reserved region failed\n"); |
1687 | } | 1687 | } |
1688 | } | 1688 | } |
1689 | #else /* !CONFIG_DMAR_GFX_WA */ | ||
1690 | static inline void iommu_prepare_gfx_mapping(void) | ||
1691 | { | ||
1692 | return; | ||
1693 | } | ||
1689 | #endif | 1694 | #endif |
1690 | 1695 | ||
1691 | #ifdef CONFIG_DMAR_FLOPPY_WA | 1696 | #ifdef CONFIG_DMAR_FLOPPY_WA |
diff --git a/include/linux/dma_remapping.h b/include/linux/dma_remapping.h index 4ef5f6bc0d68..7799a85614c1 100644 --- a/include/linux/dma_remapping.h +++ b/include/linux/dma_remapping.h | |||
@@ -20,11 +20,4 @@ extern void free_dmar_iommu(struct intel_iommu *iommu); | |||
20 | 20 | ||
21 | extern int dmar_disabled; | 21 | extern int dmar_disabled; |
22 | 22 | ||
23 | #ifndef CONFIG_DMAR_GFX_WA | ||
24 | static inline void iommu_prepare_gfx_mapping(void) | ||
25 | { | ||
26 | return; | ||
27 | } | ||
28 | #endif /* !CONFIG_DMAR_GFX_WA */ | ||
29 | |||
30 | #endif | 23 | #endif |