Skip to contentSkip to conversation

sched/psi: Fix !CONFIG_PSI stub parameter types for psi_enqueue/dequeue()

PATCH Superseded Zhan Xusheng 1 participant 1 message Apr 13 Scheduler

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/psi: Fix !CONFIG_PSI stub parameter types for psi_enqueue/dequeue()

commit 1a6151017ee5 ("sched: psi: pass enqueue/dequeue flags to psi callbacks directly") changed psi_enqueue() and psi_dequeue() to take 'int flags' instead of 'bool migrate', but missed updating the !CONFIG_PSI stubs.

Fix the stubs to match the actual function signatures.

Fixes 1a6151017ee5 ("sched: psi: pass enqueue/dequeue flags to psi callbacks directly")
---
 kernel/sched/stats.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/stats.h +2 -2
index a612cf253c87..c751263dd647 100644
@@ -226,8 +226,8 @@ static inline void psi_sched_switch(struct task_struct *prev,
 }
 
 #else /* !CONFIG_PSI: */
-static inline void psi_enqueue(struct task_struct *p, bool migrate) {}
-static inline void psi_dequeue(struct task_struct *p, bool migrate) {}
+static inline void psi_enqueue(struct task_struct *p, int flags) {}
+static inline void psi_dequeue(struct task_struct *p, int flags) {}
 static inline void psi_ttwu_dequeue(struct task_struct *p) {}
 static inline void psi_sched_switch(struct task_struct *prev,
 				    struct task_struct *next,
Signature · 1 line
2.43.0