Merge branch 'akpm' (patches from Andrew)
[platform/kernel/linux-rpi.git] / drivers / gpu / drm / i915 / i915_vma.c
index 90546fa..bef795e 100644 (file)
@@ -56,8 +56,6 @@ void i915_vma_free(struct i915_vma *vma)
 
 static void vma_print_allocator(struct i915_vma *vma, const char *reason)
 {
-       unsigned long *entries;
-       unsigned int nr_entries;
        char buf[512];
 
        if (!vma->node.stack) {
@@ -66,8 +64,7 @@ static void vma_print_allocator(struct i915_vma *vma, const char *reason)
                return;
        }
 
-       nr_entries = stack_depot_fetch(vma->node.stack, &entries);
-       stack_trace_snprint(buf, sizeof(buf), entries, nr_entries, 0);
+       stack_depot_snprint(vma->node.stack, buf, sizeof(buf), 0);
        DRM_DEBUG_DRIVER("vma.node [%08llx + %08llx] %s: inserted at %s\n",
                         vma->node.start, vma->node.size, reason, buf);
 }