Skip to content

Commit 2dcdf8c

Browse files
author
Christoph Hellwig
committed
dma-contiguous: fix the Kconfig entry for CONFIG_DMA_NUMA_CMA
It makes no sense to expose CONFIG_DMA_NUMA_CMA if CONFIG_NUMA is not enabled, and random config options shouldn't be default unless there is a good reason. Replace the default NUMA with a depends on to fix both issues. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <roin.murphy@arm.com>
1 parent fb5a431 commit 2dcdf8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/dma/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ if DMA_CMA
160160

161161
config DMA_NUMA_CMA
162162
bool "Enable separate DMA Contiguous Memory Area for NUMA Node"
163-
default NUMA
163+
depends on NUMA
164164
help
165165
Enable this option to get numa CMA areas so that NUMA devices
166166
can get local memory by DMA coherent APIs.

0 commit comments

Comments
 (0)