projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
103fa06
)
include: asm: dma-mapping: get rid of the compilation warning in udc-core
author
Kishon Vijay Abraham I
<
[email protected]
>
Mon, 23 Feb 2015 13:09:49 +0000
(18:39 +0530)
committer
Marek Vasut
<
[email protected]
>
Tue, 14 Apr 2015 03:48:08 +0000
(
05:48
+0200)
Fixed the following warning here.
"warning: ‘dma_alloc_coherent’ defined but not used" while compiling
udc-core
Signed-off-by: Kishon Vijay Abraham I <
[email protected]
>
Reviewed-by: Lukasz Majewski <
[email protected]
>
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 55a4e266a0a7078dc8f5390647b51019b8c78962..14f00efd2b8b192d6e8f23e01565e990b0ec1c97 100644
(file)
--- a/
arch/arm/include/asm/dma-mapping.h
+++ b/
arch/arm/include/asm/dma-mapping.h
@@
-14,7
+14,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)memalign(ARCH_DMA_MINALIGN, len);
return (void *)*handle;