diff options
Diffstat (limited to 'include/linux/dma_remapping.h')
-rw-r--r-- | include/linux/dma_remapping.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/dma_remapping.h b/include/linux/dma_remapping.h index 136f170cecc2..af1dab41674b 100644 --- a/include/linux/dma_remapping.h +++ b/include/linux/dma_remapping.h | |||
@@ -17,7 +17,15 @@ struct dmar_domain; | |||
17 | struct root_entry; | 17 | struct root_entry; |
18 | 18 | ||
19 | extern void free_dmar_iommu(struct intel_iommu *iommu); | 19 | extern void free_dmar_iommu(struct intel_iommu *iommu); |
20 | |||
21 | #ifdef CONFIG_DMAR | ||
20 | extern int iommu_calculate_agaw(struct intel_iommu *iommu); | 22 | extern int iommu_calculate_agaw(struct intel_iommu *iommu); |
23 | #else | ||
24 | static inline int iommu_calculate_agaw(struct intel_iommu *iommu) | ||
25 | { | ||
26 | return 0; | ||
27 | } | ||
28 | #endif | ||
21 | 29 | ||
22 | extern int dmar_disabled; | 30 | extern int dmar_disabled; |
23 | 31 | ||