diff options
author | Christoph Hellwig <hch@lst.de> | 2017-08-27 11:27:49 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-10-19 17:37:40 +0300 |
commit | d708e71ed78f56330325e8de304e2fb1e38ccf1c (patch) | |
tree | 536fad8bfebbff728c3b21a8f1b6303d7105d92b /arch/xtensa/include | |
parent | a535bb801036268c3d057d7584e9c8f35f69aad4 (diff) | |
download | linux-d708e71ed78f56330325e8de304e2fb1e38ccf1c.tar.xz |
xtensa: make dma_cache_sync a no-op
xtensa does not implement DMA_ATTR_NON_CONSISTENT allocations, so it
doesn't make any sense to do any work in dma_cache_sync given that it
must be a no-op when dma_alloc_attrs returns coherent memory.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r-- | arch/xtensa/include/asm/dma-mapping.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/xtensa/include/asm/dma-mapping.h b/arch/xtensa/include/asm/dma-mapping.h index 269738dc9d1d..353e0314d6ba 100644 --- a/arch/xtensa/include/asm/dma-mapping.h +++ b/arch/xtensa/include/asm/dma-mapping.h @@ -23,8 +23,10 @@ static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) return &xtensa_dma_map_ops; } -void dma_cache_sync(struct device *dev, void *vaddr, size_t size, - enum dma_data_direction direction); +static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, + enum dma_data_direction direction) +{ +} static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) { |