Skip to content

Commit c6c2295

Browse files
mszyprowMauro Carvalho Chehab
authored andcommitted
[media] dma-mapping: fix dma_common_get_sgtable() conditional compilation
dma_common_get_sgtable() function doesn't depend on ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY, so it must not be compiled conditionally. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent cf38f41 commit c6c2295

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/base/dma-mapping.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ void dmam_release_declared_memory(struct device *dev)
218218
}
219219
EXPORT_SYMBOL(dmam_release_declared_memory);
220220

221+
#endif
222+
221223
/*
222224
* Create scatter-list for the already allocated DMA buffer.
223225
*/
@@ -236,8 +238,6 @@ int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
236238
}
237239
EXPORT_SYMBOL(dma_common_get_sgtable);
238240

239-
#endif
240-
241241
/*
242242
* Create userspace mapping for the DMA-coherent memory.
243243
*/

0 commit comments

Comments
 (0)