--- zzzz-none-000/linux-3.10.107/include/drm/ttm/ttm_page_alloc.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/include/drm/ttm/ttm_page_alloc.h 2021-02-04 17:41:59.000000000 +0000 @@ -29,6 +29,8 @@ #include #include +struct device; + /** * Initialize pool allocator. */ @@ -62,7 +64,7 @@ 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 @@ { 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