arm64: pass return address to dma_common_contiguous_remap
authorJin Qian <jinqian@google.com>
Wed, 30 Sep 2015 01:57:35 +0000 (18:57 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:54:05 +0000 (13:54 -0800)
Added return address to show caller function in /proc/vmallocinfo

Change-Id: Ieb0bbf6ec82b561cea6ff18f0516744050dfc269

arch/arm64/mm/dma-mapping.c

index 7963aa4b5d2869b70dfd9a2f3d0ef501a033480b..6ad554b01e953f9bfc49fae40c92353ac79c7f71 100644 (file)
@@ -170,7 +170,7 @@ static void *__dma_alloc(struct device *dev, size_t size,
        /* create a coherent mapping */
        page = virt_to_page(ptr);
        coherent_ptr = dma_common_contiguous_remap(page, size, VM_USERMAP,
-                                                  prot, NULL);
+                                                  prot, __builtin_return_address(0));
        if (!coherent_ptr)
                goto no_map;