projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6a3463
)
sched/deadline: Make the grub_reclaim() function static
author
Mathieu Malaterre
<
[email protected]
>
Wed, 16 May 2018 20:09:02 +0000
(22:09 +0200)
committer
Ingo Molnar
<
[email protected]
>
Fri, 18 May 2018 07:05:22 +0000
(09:05 +0200)
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]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/sched/deadline.c
patch
|
blob
|
history
diff --git
a/kernel/sched/deadline.c
b/kernel/sched/deadline.c
index d6196bc6cbb5b6d8e42ad993fa0a07a10bf410b0..1356afd1eeb6d6468522c6e6dd50fb6b36dc5b7d 100644
(file)
--- 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;