diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/list.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/list.h b/drivers/gpu/nvgpu/include/nvgpu/list.h index a56971d0..93eb44ff 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/list.h +++ b/drivers/gpu/nvgpu/include/nvgpu/list.h | |||
@@ -80,6 +80,9 @@ static inline void nvgpu_list_replace_init(struct nvgpu_list_node *old_node, str | |||
80 | #define nvgpu_list_first_entry(ptr, type, member) \ | 80 | #define nvgpu_list_first_entry(ptr, type, member) \ |
81 | nvgpu_list_entry((ptr)->next, type, member) | 81 | nvgpu_list_entry((ptr)->next, type, member) |
82 | 82 | ||
83 | #define nvgpu_list_last_entry(ptr, type, member) \ | ||
84 | nvgpu_list_entry((ptr)->prev, type, member) | ||
85 | |||
83 | #define nvgpu_list_for_each_entry(pos, head, type, member) \ | 86 | #define nvgpu_list_for_each_entry(pos, head, type, member) \ |
84 | for (pos = nvgpu_list_first_entry(head, type, member); \ | 87 | for (pos = nvgpu_list_first_entry(head, type, member); \ |
85 | &pos->member != (head); \ | 88 | &pos->member != (head); \ |