Skip to content

Commit

Permalink
metag: Provide dma_get_sgtable()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Acked-by: Marek Szyprowski <[email protected]>
  • Loading branch information
James Hogan committed Mar 2, 2013
1 parent 2742c52 commit c60ac31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/metag/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,11 @@ dma_cache_sync(struct device *dev, void *vaddr, size_t size,
{
}

/* drivers/base/dma-mapping.c */
extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
void *cpu_addr, dma_addr_t dma_addr,
size_t size);

#define dma_get_sgtable(d, t, v, h, s) dma_common_get_sgtable(d, t, v, h, s)

#endif

0 comments on commit c60ac31

Please sign in to comment.