Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm/damon/Kconfig: make DAMON_STAT_ENABLED_DEFAULT depend on DAMON_STAT

The DAMON_STAT_ENABLED_DEFAULT option is strongly tied to DAMON_STAT
option -- enabling it alone is meaningless. This patch makes
DAMON_STAT_ENABLED_DEFAULT depend on DAMON_STAT, ensuring functional
consistency.

Link: https://lkml.kernel.org/r/20250815092110.811757-1-lienze@kylinos.cn
Fixes: 369c415e6073 ("mm/damon: introduce DAMON_STAT module")
Signed-off-by: Enze Li <lienze@kylinos.cn>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Enze Li and committed by
Andrew Morton
4e915656 6bb96144

+1 -1
+1 -1
mm/damon/Kconfig
··· 104 104 105 105 config DAMON_STAT_ENABLED_DEFAULT 106 106 bool "Enable DAMON_STAT by default" 107 - depends on DAMON_PADDR 107 + depends on DAMON_STAT 108 108 default DAMON_STAT 109 109 help 110 110 Whether to enable DAMON_STAT by default. Users can disable it in