Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i915_vma: Rename vma_lookup to i915_vma_lookup

Use i915 prefix to avoid name collision with future vma_lookup() in mm.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210323134208.3077275-1-Liam.Howlett@Oracle.com

authored by

Liam Howlett and committed by
Daniel Vetter
547be6a4 f8d1ff10

+2 -2
+2 -2
drivers/gpu/drm/i915/i915_vma.c
··· 230 230 } 231 231 232 232 static struct i915_vma * 233 - vma_lookup(struct drm_i915_gem_object *obj, 233 + i915_vma_lookup(struct drm_i915_gem_object *obj, 234 234 struct i915_address_space *vm, 235 235 const struct i915_ggtt_view *view) 236 236 { ··· 278 278 GEM_BUG_ON(!atomic_read(&vm->open)); 279 279 280 280 spin_lock(&obj->vma.lock); 281 - vma = vma_lookup(obj, vm, view); 281 + vma = i915_vma_lookup(obj, vm, view); 282 282 spin_unlock(&obj->vma.lock); 283 283 284 284 /* vma_create() will resolve the race if another creates the vma */