diff options
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_page_alloc_dma.c')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c index 7957beeeaf73..fb8259f69839 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | |||
@@ -33,6 +33,7 @@ | |||
33 | * when freed). | 33 | * when freed). |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #if defined(CONFIG_SWIOTLB) || defined(CONFIG_INTEL_IOMMU) | ||
36 | #define pr_fmt(fmt) "[TTM] " fmt | 37 | #define pr_fmt(fmt) "[TTM] " fmt |
37 | 38 | ||
38 | #include <linux/dma-mapping.h> | 39 | #include <linux/dma-mapping.h> |
@@ -1142,3 +1143,5 @@ int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data) | |||
1142 | return 0; | 1143 | return 0; |
1143 | } | 1144 | } |
1144 | EXPORT_SYMBOL_GPL(ttm_dma_page_alloc_debugfs); | 1145 | EXPORT_SYMBOL_GPL(ttm_dma_page_alloc_debugfs); |
1146 | |||
1147 | #endif | ||