]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/dma-buf/sync_debug.h
Merge tag 'edac/v4.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[karo-tx-linux.git] / drivers / dma-buf / sync_debug.h
index d269aa6783aaa57c3137ee93b02c72c620a6fd0f..26fe8b9907b38aac09d786997bd02a4e8be1706a 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <linux/list.h>
 #include <linux/spinlock.h>
-#include <linux/fence.h>
+#include <linux/dma-fence.h>
 
 #include <linux/sync_file.h>
 #include <uapi/linux/sync_file.h>
@@ -45,10 +45,9 @@ struct sync_timeline {
        struct list_head        sync_timeline_list;
 };
 
-static inline struct sync_timeline *fence_parent(struct fence *fence)
+static inline struct sync_timeline *dma_fence_parent(struct dma_fence *fence)
 {
-       return container_of(fence->lock, struct sync_timeline,
-                           child_list_lock);
+       return container_of(fence->lock, struct sync_timeline, child_list_lock);
 }
 
 /**
@@ -58,7 +57,7 @@ static inline struct sync_timeline *fence_parent(struct fence *fence)
  * @active_list: sync timeline active child's list
  */
 struct sync_pt {
-       struct fence base;
+       struct dma_fence base;
        struct list_head child_list;
        struct list_head active_list;
 };