dma-mapping: DMA_COHERENT_POOL should select GENERIC_ALLOCATOR
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Jun 2020 15:23:31 +0000 (17:23 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Jun 2020 12:13:58 +0000 (14:13 +0200)
The dma coherent pool code needs genalloc.  Move the select over
from DMA_REMAP, which doesn't actually need it.

Fixes: dbed452a078d ("dma-pool: decouple DMA_REMAP from DMA_COHERENT_POOL")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: David Rientjes <rientjes@google.com>
kernel/dma/Kconfig

index 14ef8e1..1da3f44 100644 (file)
@@ -75,12 +75,12 @@ config DMA_NONCOHERENT_MMAP
        bool
 
 config DMA_COHERENT_POOL
+       select GENERIC_ALLOCATOR
        bool
 
 config DMA_REMAP
        bool
        depends on MMU
-       select GENERIC_ALLOCATOR
        select DMA_NONCOHERENT_MMAP
 
 config DMA_DIRECT_REMAP