Skip to content

Commit

Permalink
intel-iommu: move iommu_prepare_gfx_mapping() out of dma_remapping.h
Browse files Browse the repository at this point in the history
Signed-off-by: Mark McLoughlin <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
markmc authored and Joerg Roedel committed Jan 3, 2009
1 parent 58fa730 commit 2abd7e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions include/linux/dma_remapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2abd7e1

Please sign in to comment.