|
@@ -692,6 +692,7 @@ void swiotlb_tbl_sync_single(struct device *hwdev, phys_addr_t tlb_addr,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_DMA_DIRECT_OPS
|
|
|
static inline bool dma_coherent_ok(struct device *dev, dma_addr_t addr,
|
|
|
size_t size)
|
|
|
{
|
|
@@ -763,6 +764,7 @@ static bool swiotlb_free_buffer(struct device *dev, size_t size,
|
|
|
DMA_ATTR_SKIP_CPU_SYNC);
|
|
|
return true;
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
static void
|
|
|
swiotlb_full(struct device *dev, size_t size, enum dma_data_direction dir,
|