[PATCH 44/46] kernel: Move prototype declaration to header file kernel/sched/sched.h from kernel/sched/rt.c

Rashika Kheria
2014-02-27T12:34:41Z

Move prototype declaration of function to header file
kernel/sched/sched.h from kernel/sched/rt.c because it is used by more
than one file.

This eliminates the following warning in kernel/sched/debug.c:
kernel/sched/debug.c:246:6: warning: no previous prototype for ‘print_rt_rq’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
kernel/sched/rt.c | 1 -
kernel/sched/sched.h | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index a2740b7..2fe28c8 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -2015,7 +2015,6 @@ const struct sched_class rt_sched_class = {
};

#ifdef CONFIG_SCHED_DEBUG
-extern void print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq);

void print_rt_stats(struct seq_file *m, int cpu)
{
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index c3688e2..608dd7b 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1485,6 +1485,7 @@ extern struct sched_entity *__pick_first_entity(struct cfs_rq *cfs_rq);
extern struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq);
extern void print_cfs_stats(struct seq_file *m, int cpu);
extern void print_rt_stats(struct seq_file *m, int cpu);
+void print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq);

extern void init_cfs_rq(struct cfs_rq *cfs_rq);
extern void init_rt_rq(struct rt_rq *rt_rq, struct rq *rq);
--
1.7.9.5