From: Christoph Hellwig Date: Sun, 27 Aug 2017 08:06:22 +0000 (+0200) Subject: x86: make dma_cache_sync a no-op X-Git-Tag: v4.15-rc1~121^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95e499fc7fe9c58efedc079634582164de6bbd90;p=thirdparty%2Fkernel%2Flinux.git x86: make dma_cache_sync a no-op x86 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 Reviewed-by: Thomas Gleixner Reviewed-by: Robin Murphy --- diff --git a/arch/x86/include/asm/dma-mapping.h b/arch/x86/include/asm/dma-mapping.h index 1387dafdba2d2..c6d3367be9168 100644 --- a/arch/x86/include/asm/dma-mapping.h +++ b/arch/x86/include/asm/dma-mapping.h @@ -71,7 +71,6 @@ static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, enum dma_data_direction dir) { - flush_write_buffers(); } static inline unsigned long dma_alloc_coherent_mask(struct device *dev,