Skip to contentSkip to conversation

sched/fair: Make update_entity_lag() static

PATCH Applied Hao Jia 2 participants 2 messages Aug 29, 2023 Scheduler

lore
Share & tools
lore

Hao Jia

author
#0 lore raw

PATCH 1/1 sched/fair: Make update_entity_lag() static

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

---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index 911d0063763c..8dbff6e7ad4f 100644
@@ -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;
 
Signature · 1 line
2.39.2
merge bot Applied
#1 lore raw
The following commit has been merged into the sched/urgent branch of tip:

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 <[email protected]>
AuthorDate:    Tue, 29 Aug 2023 11:03:25 +08:00
Committer:     Ingo Molnar <[email protected]>
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.

---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index 911d006..8dbff6e 100644
@@ -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;