ANDROID: 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)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
Added return address to show caller function in /proc/vmallocinfo

Change-Id: Ieb0bbf6ec82b561cea6ff18f0516744050dfc269

arch/arm64/mm/dma-mapping.c

index 614af886b7ef4f7348470f8746ea822e8665401a..115b32639a3cbfcb4a76fd777717ee55edaf2bf5 100644 (file)
@@ -166,7 +166,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;