[tip: sched/urgent] sched/fair: Make update_entity_lag() static

From: tip-bot2 for Hao Jia
Date: Tue Aug 29 2023 - 15:33:12 EST


The following commit has been merged into the sched/urgent branch of tip:

Commit-ID: c958ca2013e28e7573ad95c028198cb67c1352dd
Gitweb: https://git.kernel.org/tip/c958ca2013e28e7573ad95c028198cb67c1352dd
Author: Hao Jia <jiahao.os@xxxxxxxxxxxxx>
AuthorDate: Tue, 29 Aug 2023 11:03:25 +08:00
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
CommitterDate: Tue, 29 Aug 2023 21:05:28 +02:00

sched/fair: Make update_entity_lag() static

The function update_entity_lag() is only used inside the kernel/sched/fair.c file.
Make it static.

Signed-off-by: Hao Jia <jiahao.os@xxxxxxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20230829030325.69128-1-jiahao.os@xxxxxxxxxxxxx
---
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 911d006..8dbff6e 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;