linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/damon/Kconfig: enforce DAMON_STAT when DAMON_STAT_ENABLED_DEFAULT is selected
@ 2025-08-14 12:17 Enze Li
  2025-08-14 16:24 ` SeongJae Park
  0 siblings, 1 reply; 3+ messages in thread
From: Enze Li @ 2025-08-14 12:17 UTC (permalink / raw)
  To: sj, akpm; +Cc: damon, linux-mm, enze.li, Enze Li

The DAMON_STAT_ENABLED_DEFAULT option is strongly tied to
DAMON_STAT -- enabling it alone is meaningless.  This patch modifies the
logic to automatically enable DAMON_STAT whenever
DAMON_STAT_ENABLED_DEFAULT is selected, ensuring functional consistency.

Signed-off-by: Enze Li <lienze@kylinos.cn>
---
 mm/damon/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/damon/Kconfig b/mm/damon/Kconfig
index b3171f9406c1..5bc71354e6f3 100644
--- a/mm/damon/Kconfig
+++ b/mm/damon/Kconfig
@@ -105,7 +105,7 @@ config DAMON_STAT
 config DAMON_STAT_ENABLED_DEFAULT
 	bool "Enable DAMON_STAT by default"
 	depends on DAMON_PADDR
-	default DAMON_STAT
+	select DAMON_STAT
 	help
 	  Whether to enable DAMON_STAT by default.  Users can disable it in
 	  boot or runtime using its 'enabled' parameter.

base-commit: 0cc53520e68bea7fb80fdc6bdf8d226d1b6a98d9
-- 
2.43.0



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

end of thread, other threads:[~2025-08-15  9:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-14 12:17 [PATCH] mm/damon/Kconfig: enforce DAMON_STAT when DAMON_STAT_ENABLED_DEFAULT is selected Enze Li
2025-08-14 16:24 ` SeongJae Park
2025-08-15  9:15   ` Enze Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox