From: Jin Qian Date: Wed, 30 Sep 2015 01:57:35 +0000 (-0700) Subject: arm64: pass return address to dma_common_contiguous_remap X-Git-Tag: firefly_0821_release~2958^2~121 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=97185ece7413071e95ecab25fcb88dcfe2b72b4a;p=firefly-linux-kernel-4.4.55.git arm64: pass return address to dma_common_contiguous_remap Added return address to show caller function in /proc/vmallocinfo Change-Id: Ieb0bbf6ec82b561cea6ff18f0516744050dfc269 --- diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index 7963aa4b5d28..6ad554b01e95 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -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;