OSDN Git Service

dma-mapping: move the NEED_DMA_MAP_STATE config symbol to lib/Kconfig
authorChristoph Hellwig <hch@lst.de>
Wed, 9 May 2018 04:53:49 +0000 (06:53 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 May 2018 04:56:08 +0000 (06:56 +0200)
commitf616ab59c294b6ea6efa94f6139ea3eda2f52be0
tree7433ad06ac074cb3c94196bab89615e66c0c86a8
parent86596f0a2833300568837f9b2970541bf42cbc42
dma-mapping: move the NEED_DMA_MAP_STATE config symbol to lib/Kconfig

This way we have one central definition of it, and user can select it as
needed.  Note that we now also always select it when CONFIG_DMA_API_DEBUG
is select, which fixes some incorrect checks in a few network drivers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
15 files changed:
arch/alpha/Kconfig
arch/arm/Kconfig
arch/arm64/Kconfig
arch/ia64/Kconfig
arch/mips/Kconfig
arch/parisc/Kconfig
arch/s390/Kconfig
arch/sh/Kconfig
arch/sparc/Kconfig
arch/unicore32/Kconfig
arch/x86/Kconfig
drivers/iommu/Kconfig
include/linux/dma-mapping.h
lib/Kconfig
lib/Kconfig.debug