swiotlb: export swiotlb_dma_ops
authorChristoph Hellwig <hch@lst.de>
Thu, 28 Jun 2018 11:59:25 +0000 (13:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 28 Jun 2018 12:00:40 +0000 (14:00 +0200)
For architectures that do not use per-device dma ops we need to export
the dma_map_ops structure returned from get_arch_dma_ops().

Fixes: 10314e09 ("riscv: add swiotlb support")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Andreas Schwab <schwab@suse.de>
kernel/dma/swiotlb.c

index 04b68d9dfface72cd56d1f48ec0a58c68d2c2032..904541055792bf227faaf49734cd737142fd4111 100644 (file)
@@ -1085,3 +1085,4 @@ const struct dma_map_ops swiotlb_dma_ops = {
        .unmap_page             = swiotlb_unmap_page,
        .dma_supported          = dma_direct_supported,
 };
+EXPORT_SYMBOL(swiotlb_dma_ops);