projects
/
profile
/
common
/
platform
/
kernel
/
u-boot-artik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04cfe0e
)
include: asm: dma-mapping: get rid of the compilation warning in udc-core
author
Kishon Vijay Abraham I
<kishon@ti.com>
Mon, 23 Feb 2015 13:09:49 +0000
(18:39 +0530)
committer
Chanho Park
<chanho61.park@samsung.com>
Fri, 24 Jul 2015 07:30:05 +0000
(16:30 +0900)
Fixed the following warning here.
"warning: ‘dma_alloc_coherent’ defined but not used" while compiling
udc-core
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
arch/arm/include/asm/dma-mapping.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/dma-mapping.h
b/arch/arm/include/asm/dma-mapping.h
index 5bbb0a04646733071b680b84a09c6b587f19e7d9..7c89b324f9c81479ef7a1eb8254688c6a509c274 100644
(file)
--- a/
arch/arm/include/asm/dma-mapping.h
+++ b/
arch/arm/include/asm/dma-mapping.h
@@
-30,7
+30,7
@@
enum dma_data_direction {
DMA_FROM_DEVICE = 2,
};
-static void *dma_alloc_coherent(size_t len, unsigned long *handle)
+static
inline
void *dma_alloc_coherent(size_t len, unsigned long *handle)
{
*handle = (unsigned long)malloc(len);
return (void *)*handle;