OSDN Git Service

dma-mapping: add a Kconfig symbol to indicate arch_dma_prep_coherent presence
authorChristoph Hellwig <hch@lst.de>
Mon, 25 Mar 2019 14:44:06 +0000 (15:44 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 6 May 2019 13:04:40 +0000 (15:04 +0200)
commit13bf5ced93775ffccb53527a9d862e023a9daa03
tree8841a56889a7b6468e7c81215428376358345211
parent148a97d5a02a62f81b5d6176f871c94a65e1f3af
dma-mapping: add a Kconfig symbol to indicate arch_dma_prep_coherent presence

Add a Kconfig symbol that indicates an architecture provides a
arch_dma_prep_coherent implementation, and provide a stub otherwise.

This will allow the generic dma-iommu code to use it while still
allowing to be built for cache coherent architectures.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
arch/arm64/Kconfig
arch/csky/Kconfig
include/linux/dma-noncoherent.h
kernel/dma/Kconfig