Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

swiotlb: remove the CONFIG_DMA_DIRECT_OPS ifdefs

swiotlb now selects the DMA_DIRECT_OPS config symbol, so this will
always be true.

Signed-off-by: Christoph Hellwig <hch@lst.de>

-4
-4
lib/swiotlb.c
··· 692 692 } 693 693 } 694 694 695 - #ifdef CONFIG_DMA_DIRECT_OPS 696 695 static inline bool dma_coherent_ok(struct device *dev, dma_addr_t addr, 697 696 size_t size) 698 697 { ··· 763 764 DMA_ATTR_SKIP_CPU_SYNC); 764 765 return true; 765 766 } 766 - #endif 767 767 768 768 static void 769 769 swiotlb_full(struct device *dev, size_t size, enum dma_data_direction dir, ··· 1043 1045 return __phys_to_dma(hwdev, io_tlb_end - 1) <= mask; 1044 1046 } 1045 1047 1046 - #ifdef CONFIG_DMA_DIRECT_OPS 1047 1048 void *swiotlb_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, 1048 1049 gfp_t gfp, unsigned long attrs) 1049 1050 { ··· 1086 1089 .unmap_page = swiotlb_unmap_page, 1087 1090 .dma_supported = dma_direct_supported, 1088 1091 }; 1089 - #endif /* CONFIG_DMA_DIRECT_OPS */