diff options
author | Christoph Hellwig <hch@lst.de> | 2023-08-30 11:25:25 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-08-30 13:52:53 +0200 |
commit | 2dcdf8c18d5c1835571bfa40f40ac134c8a1f0f5 (patch) | |
tree | a0274594b349e68e9a979b20067a80f9986bdf71 /kernel | |
parent | fb5a4315591dae307a65fc246ca80b5159d296e1 (diff) | |
download | linux-2dcdf8c18d5c1835571bfa40f40ac134c8a1f0f5.tar.gz linux-2dcdf8c18d5c1835571bfa40f40ac134c8a1f0f5.tar.bz2 linux-2dcdf8c18d5c1835571bfa40f40ac134c8a1f0f5.zip |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/dma/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig index 4c1e9a3c0ab6..f488997b0717 100644 --- a/kernel/dma/Kconfig +++ b/kernel/dma/Kconfig @@ -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. |