[PATCH] sched/psi: Fix !CONFIG_PSI stub parameter types for psi_enqueue/dequeue()
From: Zhan Xusheng
Date: Mon Apr 13 2026 - 10:48:48 EST
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")
Signed-off-by: Zhan Xusheng <zhanxusheng@xxxxxxxxxx>
---
kernel/sched/stats.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/sched/stats.h b/kernel/sched/stats.h
index a612cf253c87..c751263dd647 100644
--- a/kernel/sched/stats.h
+++ b/kernel/sched/stats.h
@@ -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,
--
2.43.0