diff options
author | Mathieu Malaterre <malat@debian.org> | 2018-05-16 22:09:02 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-05-18 09:05:22 +0200 |
commit | 3febfc8a219a036633b57a34c6678e21b6a0580d (patch) | |
tree | 0b4492b6a2e51ab037c9731fb81fcd2e87b601f3 /kernel | |
parent | sched/debug: Move the print_rt_rq() and print_dl_rq() declarations to kernel/... (diff) | |
download | linux-3febfc8a219a036633b57a34c6678e21b6a0580d.tar.xz linux-3febfc8a219a036633b57a34c6678e21b6a0580d.zip |
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 <malat@debian.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180516200902.959-1-malat@debian.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/deadline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index d6196bc6cbb5..1356afd1eeb6 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -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; |