提交 210d0797 编写于 作者: C Christoph Hellwig

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: NChristoph Hellwig <hch@lst.de>
Reported-by: NAndreas Schwab <schwab@suse.de>
上级 f5749432
...@@ -1085,3 +1085,4 @@ const struct dma_map_ops swiotlb_dma_ops = { ...@@ -1085,3 +1085,4 @@ const struct dma_map_ops swiotlb_dma_ops = {
.unmap_page = swiotlb_unmap_page, .unmap_page = swiotlb_unmap_page,
.dma_supported = dma_direct_supported, .dma_supported = dma_direct_supported,
}; };
EXPORT_SYMBOL(swiotlb_dma_ops);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册