mips,unicore32: swiotlb doesn't need sg->dma_length
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Apr 2018 06:58:47 +0000 (08:58 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 May 2018 04:57:56 +0000 (06:57 +0200)
Only mips and unicore32 select CONFIG_NEED_SG_DMA_LENGTH when building
swiotlb.  swiotlb itself never merges segements and doesn't accesses the
dma_length field directly, so drop the dependency.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: James Hogan <jhogan@kernel.org>
arch/mips/cavium-octeon/Kconfig
arch/mips/loongson64/Kconfig
arch/unicore32/mm/Kconfig

index 5d73041547a735feef05a69fce55926ab22cedff..eb5faeed4f66dfaab85e12ef3d16337a3a806ccf 100644 (file)
@@ -70,7 +70,6 @@ config CAVIUM_OCTEON_LOCK_L2_MEMCPY
 config SWIOTLB
        def_bool y
        select DMA_DIRECT_OPS
-       select NEED_SG_DMA_LENGTH
 
 config OCTEON_ILM
        tristate "Module to measure interrupt latency using Octeon CIU Timer"
index 641a1477031e3307a7e5fff601be0b11fe85fb5c..2a4fb91adbb66ef063bf8783499145baee8a960d 100644 (file)
@@ -135,7 +135,6 @@ config SWIOTLB
        default y
        depends on CPU_LOONGSON3
        select DMA_DIRECT_OPS
-       select NEED_SG_DMA_LENGTH
        select NEED_DMA_MAP_STATE
 
 config PHYS48_TO_HT40
index 1d9fed0ada71f08ae8b1961e287d422facc460df..45b7f769375e2476fca590640db09736fc39a1cc 100644 (file)
@@ -43,4 +43,3 @@ config CPU_TLB_SINGLE_ENTRY_DISABLE
 config SWIOTLB
        def_bool y
        select DMA_DIRECT_OPS
-       select NEED_SG_DMA_LENGTH