]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/i915: Make i915_vma_destroy() static
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Jun 2017 12:35:08 +0000 (13:35 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Jun 2017 13:32:12 +0000 (14:32 +0100)
i915_vma_destroy() is now not used outside of i915_vma.c so we can
remove the export and make the function static.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170616123508.12673-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h

index 6cf32da682ec07b71a6fd6bd9c4a036674caf7c6..bbc8309743a0a6c55c155b874ff3a625c2b7f624 100644 (file)
@@ -576,7 +576,7 @@ err_unpin:
        return ret;
 }
 
-void i915_vma_destroy(struct i915_vma *vma)
+static void i915_vma_destroy(struct i915_vma *vma)
 {
        GEM_BUG_ON(vma->node.allocated);
        GEM_BUG_ON(i915_vma_is_active(vma));
index 4d827300d1a8f7f9807b2b8def235a674263aefa..11ce83a8adf03bf565e1b157a5b3e1e27a800134 100644 (file)
@@ -236,7 +236,6 @@ bool i915_vma_misplaced(const struct i915_vma *vma,
 void __i915_vma_set_map_and_fenceable(struct i915_vma *vma);
 int __must_check i915_vma_unbind(struct i915_vma *vma);
 void i915_vma_close(struct i915_vma *vma);
-void i915_vma_destroy(struct i915_vma *vma);
 
 int __i915_vma_do_pin(struct i915_vma *vma,
                      u64 size, u64 alignment, u64 flags);