summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-06-28 13:59:25 +0200
committerChristoph Hellwig <hch@lst.de>2018-06-28 14:00:40 +0200
commit210d0797c97d0e8f3b1a932a0dc143f4c57008a3 (patch)
tree84538c41d603f958d11d75e68b12e313b98ac561 /kernel
parentMerge tag 'xfs-4.18-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux (diff)
downloadlinux-210d0797c97d0e8f3b1a932a0dc143f4c57008a3.tar.xz
linux-210d0797c97d0e8f3b1a932a0dc143f4c57008a3.zip
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 <hch@lst.de> Reported-by: Andreas Schwab <schwab@suse.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/dma/swiotlb.c1
1 files changed, 1 insertions, 0 deletions
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);