Skip to contentSkip to conversation

memory tier: remove unneeded disable_all_demotion_targets() when !CONFIG_MIGRATION

PATCH Applied Miaohe Lin 1 participant 1 message Jun 6, 2023

Subsystems (2)
lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 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.

---
 mm/memory-tiers.c | 1 -
 1 file changed, 1 deletion(-)
mm/memory-tiers.c +0 -1
index e593e56e530b..dd04f0ce5277 100644
@@ -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 */
 
Signature · 1 line
2.27.0