damon_targets_empty() has had no in-tree users since commit 5ec4333b1967 ("mm/damon: remove DAMON debugfs interface") removed its last caller. Remove the unused declaration and definition. Signed-off-by: Cheng-Han Wu Reviewed-by: SJ Park Signed-off-by: SJ Park --- include/linux/damon.h | 1 - mm/damon/core.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/linux/damon.h b/include/linux/damon.h index 310509455db13..9835b864a8db9 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -1056,7 +1056,6 @@ int damos_commit_quota_goals(struct damos_quota *dst, struct damos_quota *src); struct damon_target *damon_new_target(void); void damon_add_target(struct damon_ctx *ctx, struct damon_target *t); -bool damon_targets_empty(struct damon_ctx *ctx); int damon_set_target_pid(struct damon_target *t, int pid); void damon_free_target(struct damon_target *t); void damon_destroy_target(struct damon_target *t, struct damon_ctx *ctx); diff --git a/mm/damon/core.c b/mm/damon/core.c index 3fa1b096c8330..043eb38de5fd3 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -798,11 +798,6 @@ void damon_add_target(struct damon_ctx *ctx, struct damon_target *t) list_add_tail(&t->list, &ctx->adaptive_targets); } -bool damon_targets_empty(struct damon_ctx *ctx) -{ - return list_empty(&ctx->adaptive_targets); -} - /* * Assign the struct pid of the given pid number to the given target. */ -- 2.47.3