[PATCH 0/2] mm/damon/core: remove unused helper functions

Cheng-Han Wu posted 2 patches 2 days, 10 hours ago
include/linux/damon.h |  2 --
mm/damon/core.c       | 19 -------------------
2 files changed, 21 deletions(-)
[PATCH 0/2] mm/damon/core: remove unused helper functions
Posted by Cheng-Han Wu 2 days, 10 hours ago
Both damon_targets_empty() and damon_nr_running_ctxs() have had no
in-tree users since commit 5ec4333b1967 ("mm/damon: remove DAMON
debugfs interface") removed their remaining callers.

Remove the unused declarations and definitions.

Tested with:
  make O=../linux-build-mm W=1 mm/damon

Cheng-Han Wu (2):
  mm/damon/core: remove unused damon_targets_empty()
  mm/damon/core: remove unused damon_nr_running_ctxs()

 include/linux/damon.h |  2 --
 mm/damon/core.c       | 19 -------------------
 2 files changed, 21 deletions(-)


base-commit: 5e0603ba185af6754422ad28b646798686b6caf6
-- 
2.52.0
Re: [PATCH 0/2] mm/damon/core: remove unused helper functions
Posted by SJ Park 2 days, 8 hours ago
On Wed, 22 Jul 2026 19:33:36 +0800 Cheng-Han Wu <hank20010209@gmail.com> wrote:

> Both damon_targets_empty() and damon_nr_running_ctxs() have had no
> in-tree users since commit 5ec4333b1967 ("mm/damon: remove DAMON
> debugfs interface") removed their remaining callers.
> 
> Remove the unused declarations and definitions.
> 
> Tested with:
>   make O=../linux-build-mm W=1 mm/damon

Nice catch and cleanup, thnk you!


I applied  this patch to damon/next [1] tree.  We are now quite close to next
merge window.  We (mm community) want to focus on making mm.git more stabilized
and therefore ready for the next merge window, rather than adding more changes
that are not really urgent.  I understand this series is not really urgent.
Hence, Andrew might not add this patch until next -rc1 release.  In the case, I
will request adding this to mm.git after next -rc1 release.  So, no action from
your side is needed for now.  Let me know if you think this is really  urgent.

[1] https://origin.kernel.org/doc/html/latest/mm/damon/maintainer-profile.html#scm-trees


Thanks,
SJ

[...]