All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dma-contiguous: fix the Kconfig entry for CONFIG_DMA_NUMA_CMA
@ 2023-08-30  9:27 Christoph Hellwig
  2023-08-30 10:11 ` Robin Murphy
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2023-08-30  9:27 UTC (permalink / raw)
  To: m.szyprowski, robin.murphy, yajun.deng; +Cc: iommu

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>
---
 kernel/dma/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig
index 4c1e9a3c0ab6f0..f488997b071712 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.
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-30 12:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-30  9:27 [PATCH] dma-contiguous: fix the Kconfig entry for CONFIG_DMA_NUMA_CMA Christoph Hellwig
2023-08-30 10:11 ` Robin Murphy
2023-08-30 11:54   ` Christoph Hellwig
2023-08-30 12:04     ` Robin Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.