mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/i915: vma is always backed by an object.
vma->obj and vma->resv are now never NULL, and some checks can be removed. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211117142024.1043017-4-matthew.auld@intel.com
This commit is contained in:
committed by
Matthew Auld
parent
d03a29e0b1
commit
e6e1a304d7
@@ -418,9 +418,6 @@ static inline void i915_vma_clear_scanout(struct i915_vma *vma)
|
||||
list_for_each_entry(V, &(OBJ)->vma.list, obj_link) \
|
||||
for_each_until(!i915_vma_is_ggtt(V))
|
||||
|
||||
struct i915_vma *i915_vma_alloc(void);
|
||||
void i915_vma_free(struct i915_vma *vma);
|
||||
|
||||
struct i915_vma *i915_vma_make_unshrinkable(struct i915_vma *vma);
|
||||
void i915_vma_make_shrinkable(struct i915_vma *vma);
|
||||
void i915_vma_make_purgeable(struct i915_vma *vma);
|
||||
|
||||
Reference in New Issue
Block a user