[PATCH -next] sched/fair: change update_entity_lag() to static
From: Yang Yingliang
Date: Tue Aug 01 2023 - 05:38:15 EST
The update_entity_lag() introduced in commit
86bfbb7ce4f6 ("sched/fair: Add lag based placement")
is only used in fair.c now, change it to static.
Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 857c5975c8c9..4e65e3964d96 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -699,7 +699,7 @@ u64 avg_vruntime(struct cfs_rq *cfs_rq)
*
* XXX could add max_slice to the augmented data to track this.
*/
-void update_entity_lag(struct cfs_rq *cfs_rq, struct sched_entity *se)
+static void update_entity_lag(struct cfs_rq *cfs_rq, struct sched_entity *se)
{
s64 lag, limit;
--
2.25.1