summaryrefslogtreecommitdiff
path: root/mm/memory-tiers.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2023-06-06 20:07:24 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-06-19 16:19:00 -0700
commite6c715abb4ee0ffe291c83e2e3d22866f387cda9 (patch)
tree7d932c366a181effcf8c07d20c2b3746845202d8 /mm/memory-tiers.c
parente5797dc011182f8b25420bc977f37cd92fc6e755 (diff)
memory tier: remove unneeded disable_all_demotion_targets() when !CONFIG_MIGRATION
There's no caller of disable_all_demotion_targets() when CONFIG_MIGRATION is disabled. Remove it. Link: https://lkml.kernel.org/r/20230606120724.208552-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memory-tiers.c')
-rw-r--r--mm/memory-tiers.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/memory-tiers.c b/mm/memory-tiers.c
index e593e56e530b..dd04f0ce5277 100644
--- a/mm/memory-tiers.c
+++ b/mm/memory-tiers.c
@@ -451,7 +451,6 @@ static void establish_demotion_targets(void)
}
#else
-static inline void disable_all_demotion_targets(void) {}
static inline void establish_demotion_targets(void) {}
#endif /* CONFIG_MIGRATION */