From: Christoph Hellwig Date: Thu, 28 Jun 2018 11:59:25 +0000 (+0200) Subject: swiotlb: export swiotlb_dma_ops X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=210d0797c97d0e8f3b1a932a0dc143f4c57008a3;p=openwrt%2Fstaging%2Fblogic.git swiotlb: export swiotlb_dma_ops 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 Reported-by: Andreas Schwab --- diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index 04b68d9dffac..904541055792 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -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);