Skip to contentSkip to conversation

sched/deadline: delete extraneous extern for to_ratio()

PATCH New Paul Gortmaker 2 participants 2 messages May 13, 2014 – Jun 5, 2014 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/deadline: delete extraneous extern for to_ratio()

There was a prototype for it added to kernel/sched/sched.h at the same time the extern was added, so the extern in the C file was never really ever needed.

See commit 332ac17ef5bfcff4766dfdfd3b4cdf10b8f8f155 ("sched/deadline:
Add bandwidth management for SCHED_DEADLINE tasks") for details.

---

[patch created against today's linux-next, in case that matters.]

 kernel/sched/deadline.c | 2 --
 1 file changed, 2 deletions(-)
kernel/sched/deadline.c +0 -2
index 3fa3fac9d819..1b05677f5af5 100644
@@ -57,8 +57,6 @@ void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime)
 	dl_b->dl_runtime = runtime;
 }
 
-extern unsigned long to_ratio(u64 period, u64 runtime);
-
 void init_dl_bw(struct dl_bw *dl_b)
 {
 	raw_spin_lock_init(&dl_b->lock);
Signature · 1 line
1.9.2
#1 lore raw

[tip:sched/core] sched/deadline: Delete extraneous extern for to_ratio()

sched/deadline: Delete extraneous extern for to_ratio()
Commit-ID:  f602d0632755be4f7eddfdd6c0af13216790177b
Gitweb:     http://git.kernel.org/tip/f602d0632755be4f7eddfdd6c0af13216790177b
Author:     Paul Gortmaker <[email protected]>
AuthorDate: Tue, 13 May 2014 16:40:05 -0400
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 5 Jun 2014 14:22:24 +0200

sched/deadline: Delete extraneous extern for to_ratio()

There was a prototype for it added to kernel/sched/sched.h at the same time the extern was added, so the extern in the C file was never really ever needed.

See commit 332ac17ef5bfcff4766dfdfd3b4cdf10b8f8f155 ("sched/deadline: Add bandwidth management for SCHED_DEADLINE tasks") for details.

---
 kernel/sched/deadline.c | 2 --
 1 file changed, 2 deletions(-)
kernel/sched/deadline.c +0 -2
index f9ca7d1..0d6b170 100644
@@ -57,8 +57,6 @@ void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime)
 	dl_b->dl_runtime = runtime;
 }
 
-extern unsigned long to_ratio(u64 period, u64 runtime);
-
 void init_dl_bw(struct dl_bw *dl_b)
 {
 	raw_spin_lock_init(&dl_b->lock);