diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2023-06-06 15:07:24 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-06-20 02:19:00 +0300 |
commit | e6c715abb4ee0ffe291c83e2e3d22866f387cda9 (patch) | |
tree | 7d932c366a181effcf8c07d20c2b3746845202d8 | |
parent | e5797dc011182f8b25420bc977f37cd92fc6e755 (diff) | |
download | linux-e6c715abb4ee0ffe291c83e2e3d22866f387cda9.tar.xz |
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>
-rw-r--r-- | mm/memory-tiers.c | 1 |
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 */ |