]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen-swiotlb: consolidate xen_swiotlb_dma_ops
authorChristoph Hellwig <hch@lst.de>
Sun, 21 May 2017 11:15:13 +0000 (13:15 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 20 Jun 2017 09:12:59 +0000 (11:12 +0200)
commitdceb1a6819ab2c8b5564354543447b1af4fccedd
tree8a5b44e8396bae9ee4cc5a5f132b5079dbe99159
parent81a5a316756b23cd0264627366ba32b337b8fa24
xen-swiotlb: consolidate xen_swiotlb_dma_ops

ARM and x86 had duplicated versions of the dma_ops structure, the
only difference is that x86 hasn't wired up the set_dma_mask,
mmap, and get_sgtable ops yet.  On x86 all of them are identical
to the generic version, so they aren't needed but harmless.

All the symbols used only for xen_swiotlb_dma_ops can now be marked
static as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/arm/xen/mm.c
arch/x86/xen/pci-swiotlb-xen.c
drivers/xen/swiotlb-xen.c
include/xen/swiotlb-xen.h