]> www.infradead.org Git - users/jedix/linux-maple.git/commit
swiotlb: Make swiotlb_{alloc,free}_buffer depend on CONFIG_DMA_DIRECT_OPS
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Mar 2018 17:49:30 +0000 (18:49 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 Mar 2018 19:15:38 +0000 (20:15 +0100)
commit0803e6051c1562e1525c3e044313390bf8b35c2b
tree3dfff08cbfc30eac2e23d072db590a394a952269
parent16e73adbca76fd18733278cb688b0ddb4cad162c
swiotlb: Make swiotlb_{alloc,free}_buffer depend on CONFIG_DMA_DIRECT_OPS

Otherwise this causes unused symbol warnings for configs that build
swiotlb.c only for use by xen-swiotlb.c and that don't otherwise select
CONFIG_DMA_DIRECT_OPS, which is possible on arm.

Fixes: 16e73adbca76 ("dma/swiotlb: Remove swiotlb_{alloc,free}_coherent()")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: iommu@lists.linux-foundation.org
Cc: konrad.wilk@oracle.com
Link: https://lkml.kernel.org/r/20180323174930.17767-1-hch@lst.de
lib/swiotlb.c