diff options
Diffstat (limited to 'include/drm/ttm/ttm_page_alloc.h')
| -rw-r--r-- | include/drm/ttm/ttm_page_alloc.h | 13 | 
1 files changed, 12 insertions, 1 deletions
diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h index 706b962c646..49a828425fa 100644 --- a/include/drm/ttm/ttm_page_alloc.h +++ b/include/drm/ttm/ttm_page_alloc.h @@ -29,6 +29,8 @@  #include <drm/ttm/ttm_bo_driver.h>  #include <drm/ttm/ttm_memory.h> +struct device; +  /**   * Initialize pool allocator.   */ @@ -62,7 +64,7 @@ extern void ttm_pool_unpopulate(struct ttm_tt *ttm);  extern int ttm_page_alloc_debugfs(struct seq_file *m, void *data); -#ifdef CONFIG_SWIOTLB +#if defined(CONFIG_SWIOTLB) || defined(CONFIG_INTEL_IOMMU)  /**   * Initialize pool allocator.   */ @@ -94,6 +96,15 @@ static inline int ttm_dma_page_alloc_debugfs(struct seq_file *m, void *data)  {  	return 0;  } +static inline int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, +				   struct device *dev) +{ +	return -ENOMEM; +} +static inline void ttm_dma_unpopulate(struct ttm_dma_tt *ttm_dma, +				      struct device *dev) +{ +}  #endif  #endif  | 
