mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 14:31:46 +00:00
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>
This commit is contained in:
parent
58fa7304a2
commit
2abd7e167c
2 changed files with 5 additions and 7 deletions
|
@ -1686,6 +1686,11 @@ static void __init iommu_prepare_gfx_mapping(void)
|
||||||
printk(KERN_ERR "IOMMU: mapping reserved region failed\n");
|
printk(KERN_ERR "IOMMU: mapping reserved region failed\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else /* !CONFIG_DMAR_GFX_WA */
|
||||||
|
static inline void iommu_prepare_gfx_mapping(void)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_DMAR_FLOPPY_WA
|
#ifdef CONFIG_DMAR_FLOPPY_WA
|
||||||
|
|
|
@ -20,11 +20,4 @@ extern void free_dmar_iommu(struct intel_iommu *iommu);
|
||||||
|
|
||||||
extern int dmar_disabled;
|
extern int dmar_disabled;
|
||||||
|
|
||||||
#ifndef CONFIG_DMAR_GFX_WA
|
|
||||||
static inline void iommu_prepare_gfx_mapping(void)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif /* !CONFIG_DMAR_GFX_WA */
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue