Skip to content

Commit 210d079

Browse files
author
Christoph Hellwig
committed
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: 10314e0 ("riscv: add swiotlb support") Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Andreas Schwab <schwab@suse.de>
1 parent f574943 commit 210d079

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/dma/swiotlb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,3 +1085,4 @@ const struct dma_map_ops swiotlb_dma_ops = {
10851085
.unmap_page = swiotlb_unmap_page,
10861086
.dma_supported = dma_direct_supported,
10871087
};
1088+
EXPORT_SYMBOL(swiotlb_dma_ops);

0 commit comments

Comments
 (0)