OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9c2864
)
ANDROID: arm64: pass return address to dma_common_contiguous_remap
author
Jin Qian
<jinqian@google.com>
Wed, 30 Sep 2015 01:57:35 +0000
(18:57 -0700)
committer
Dmitry Shmidt
<dimitrysh@google.com>
Fri, 27 Jan 2017 21:52:12 +0000
(13:52 -0800)
Added return address to show caller function in /proc/vmallocinfo
Change-Id: Ieb0bbf6ec82b561cea6ff18f0516744050dfc269
arch/arm64/mm/dma-mapping.c
patch
|
blob
|
history
diff --git
a/arch/arm64/mm/dma-mapping.c
b/arch/arm64/mm/dma-mapping.c
index
3f74d0d
..
3b7acaa
100644
(file)
--- a/
arch/arm64/mm/dma-mapping.c
+++ b/
arch/arm64/mm/dma-mapping.c
@@
-174,7
+174,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;