dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/ttm: Add dummy *populate_and_*map_pages() functions
@ 2017-08-24 10:48 Tom St Denis
       [not found] ` <20170824104818.9973-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Tom St Denis @ 2017-08-24 10:48 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: Tom St Denis, dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On non IOTLB/IOMMU builds these functions would be undefined.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
 include/drm/ttm/ttm_page_alloc.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h
index 8695918ea629..4400c08169cd 100644
--- a/include/drm/ttm/ttm_page_alloc.h
+++ b/include/drm/ttm/ttm_page_alloc.h
@@ -116,6 +116,16 @@ static inline void ttm_dma_unpopulate(struct ttm_dma_tt *ttm_dma,
 				      struct device *dev)
 {
 }
+
+static inline int ttm_populate_and_map_pages(struct device *dev, struct ttm_dma_tt *tt)
+{
+	return 0;
+}
+
+static inline void ttm_unmap_and_unpopulate_pages(struct device *dev, struct ttm_dma_tt *tt)
+{
+}
+
 #endif
 
 #endif
-- 
2.12.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-08-24 11:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24 10:48 [PATCH 1/2] drm/ttm: Add dummy *populate_and_*map_pages() functions Tom St Denis
     [not found] ` <20170824104818.9973-1-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
2017-08-24 10:48   ` [PATCH 2/2] drm/ttm: Remove needless 'extern' on functions in header Tom St Denis
     [not found]     ` <20170824104818.9973-2-tom.stdenis-5C7GfCeVMHo@public.gmane.org>
2017-08-24 11:53       ` Christian König
2017-08-24 11:55         ` Tom St Denis
2017-08-24 11:52   ` [PATCH 1/2] drm/ttm: Add dummy *populate_and_*map_pages() functions Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox