sched/fair: Make update_entity_lag() static
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.
Signed-off-by Hao Jia <[email protected]>
--- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
@@ -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
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.
Signed-off-by Hao Jia <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
@@ -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;