Skip to content

Commit

Permalink
dma-contiguous: fix the Kconfig entry for CONFIG_DMA_NUMA_CMA
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig committed Aug 30, 2023
1 parent fb5a431 commit 2dcdf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ if DMA_CMA

config DMA_NUMA_CMA
bool "Enable separate DMA Contiguous Memory Area for NUMA Node"
default NUMA
depends on NUMA
help
Enable this option to get numa CMA areas so that NUMA devices
can get local memory by DMA coherent APIs.
Expand Down

0 comments on commit 2dcdf8c

Please sign in to comment.