sched/deadline: make function ‘grub_reclaim’ static
PATCH 1/1 sched/deadline: make function ‘grub_reclaim’ static
Since function ‘grub_reclaim’ can be made static, make it so. Silence the following gcc warning (W=1):
kernel/sched/deadline.c:1120:5: warning: no previous prototype for ‘grub_reclaim’ [-Wmissing-prototypes]
Signed-off-by Mathieu Malaterre <[email protected]>
--- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/deadline.c +1 -1
@@ -1117,7 +1117,7 @@ extern bool sched_rt_bandwidth_account(struct rt_rq *rt_rq);* should be larger than 2^(64 - 20 - 8), which is more than 64 seconds. * So, overflow is not an issue here. */ -u64 grub_reclaim (u64 delta,struct rq *rq,struct sched_dl_entity *dl_se) +static u64 grub_reclaim (u64 delta,struct rq *rq,struct sched_dl_entity *dl_se) {u64 u_inact = rq->dl.this_bw - rq->dl.running_bw;/* Utot - Uact */ u64 u_act;
Signature · 1 line
2.11.0
tip-bot for Mathieu Malaterre
merge bot[tip:sched/urgent] sched/deadline: Make the grub_reclaim() function static
sched/deadline: Make the grub_reclaim() function static
Commit-ID: 3febfc8a219a036633b57a34c6678e21b6a0580d Gitweb: https://git.kernel.org/tip/3febfc8a219a036633b57a34c6678e21b6a0580d Author: Mathieu Malaterre <[email protected]> AuthorDate: Wed, 16 May 2018 22:09:02 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Fri, 18 May 2018 09:05:22 +0200
sched/deadline: Make the grub_reclaim() function static
Since the grub_reclaim() function can be made static, make it so.
Silences the following GCC warning (W=1):
kernel/sched/deadline.c:1120:5: warning: no previous prototype for ‘grub_reclaim’ [-Wmissing-prototypes]
Signed-off-by Mathieu Malaterre <[email protected]>
Acked-by Peter Zijlstra <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/deadline.c +1 -1
@@ -1117,7 +1117,7 @@ extern bool sched_rt_bandwidth_account(struct rt_rq *rt_rq);* should be larger than 2^(64 - 20 - 8), which is more than 64 seconds. * So, overflow is not an issue here. */ -u64 grub_reclaim (u64 delta,struct rq *rq,struct sched_dl_entity *dl_se) +static u64 grub_reclaim (u64 delta,struct rq *rq,struct sched_dl_entity *dl_se) {u64 u_inact = rq->dl.this_bw - rq->dl.running_bw;/* Utot - Uact */ u64 u_act;