dma-direct: add dependencies to CONFIG_DMA_GLOBAL_POOL
authorChristoph Hellwig <hch@lst.de>
Thu, 5 Oct 2023 07:06:55 +0000 (09:06 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 22 Oct 2023 14:38:02 +0000 (16:38 +0200)
commitda323d4640704001f2287f729124e1cd9d5684d0
treef1cd06c3197eb9fc6b3c2de51a8927ff278b113e
parentce55c22ec8b223a90ff3e084d842f73cfba35588
dma-direct: add dependencies to CONFIG_DMA_GLOBAL_POOL

CONFIG_DMA_GLOBAL_POOL can't be combined with other DMA coherent
allocators.  Add dependencies to Kconfig to document this, and make
kconfig complain about unmet dependencies if someone tries.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Greg Ungerer <gerg@linux-m68k.org>
Tested-by: Greg Ungerer <gerg@linux-m68k.org>
kernel/dma/Kconfig