aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Hogan2013-02-19 07:25:46 -0600
committerJames Hogan2013-03-02 14:11:17 -0600
commitc60ac31542e93499b58dcfc1e3f6550ba5b5728e (patch)
tree9546eac961af7a343eefc302f81f0e70d1298cf9 /arch/metag
parent2742c52655cff867fbf55e2e9cb993b8f965b7d7 (diff)
downloadam43-linux-kernel-c60ac31542e93499b58dcfc1e3f6550ba5b5728e.tar.gz
am43-linux-kernel-c60ac31542e93499b58dcfc1e3f6550ba5b5728e.tar.xz
am43-linux-kernel-c60ac31542e93499b58dcfc1e3f6550ba5b5728e.zip
metag: Provide dma_get_sgtable()
metag/allmodconfig: drivers/media/v4l2-core/videobuf2-dma-contig.c: In function 'vb2_dc_get_base_sgt': drivers/media/v4l2-core/videobuf2-dma-contig.c:387: error: implicit declaration of function 'dma_get_sgtable' For architectures using dma_map_ops, dma_get_sgtable() is provided in <asm-generic/dma-mapping-common.h>. Metag does not use dma_map_ops yet, hence it should implement it as an inline stub using dma_common_get_sgtable(). Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'arch/metag')
-rw-r--r--arch/metag/include/asm/dma-mapping.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/metag/include/asm/dma-mapping.h b/arch/metag/include/asm/dma-mapping.h
index b5f80a62fe8..14b23efd9b7 100644
--- a/arch/metag/include/asm/dma-mapping.h
+++ b/arch/metag/include/asm/dma-mapping.h
@@ -180,4 +180,11 @@ dma_cache_sync(struct device *dev, void *vaddr, size_t size,
180{ 180{
181} 181}
182 182
183/* drivers/base/dma-mapping.c */
184extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
185 void *cpu_addr, dma_addr_t dma_addr,
186 size_t size);
187
188#define dma_get_sgtable(d, t, v, h, s) dma_common_get_sgtable(d, t, v, h, s)
189
183#endif 190#endif