summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/list.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/list.h b/drivers/gpu/nvgpu/include/nvgpu/list.h
index c8d2b37a..e6efa254 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/list.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/list.h
@@ -56,6 +56,12 @@ static inline int nvgpu_list_empty(struct nvgpu_list_node *head)
56 return head->next == head; 56 return head->next == head;
57} 57}
58 58
59static inline void nvgpu_list_move(struct nvgpu_list_node *node, struct nvgpu_list_node *head)
60{
61 nvgpu_list_del(node);
62 nvgpu_list_add(node, head);
63}
64
59#define nvgpu_list_entry(ptr, type, member) \ 65#define nvgpu_list_entry(ptr, type, member) \
60 type ## _from_ ## member(ptr) 66 type ## _from_ ## member(ptr)
61 67