aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Triplett <josh@kernel.org>2007-08-09 05:16:46 -0400
committerIngo Molnar <mingo@elte.hu>2007-08-09 05:16:46 -0400
commit291ae5a12088e1aa87aae4899a818498be3d18eb (patch)
tree0c45edfb75caa16f5d75d47b71d9c3fcf321fcec
parent9531b62f5ebf2b693bf85129d20328188f685c44 (diff)
sched: mark print_cfs_stats static
sched_fair.c defines print_cfs_stats, and sched_debug.c uses it, but sched.c includes both sched_fair.c and sched_debug.c, so all the references to print_cfs_stats occur in the same compilation unit. Thus, mark print_cfs_stats static. Eliminates a sparse warning: warning: symbol 'print_cfs_stats' was not declared. Should it be static? Signed-off-by: Josh Triplett <josh@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/sched_fair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 7307a37cf26f..edcb4b542bca 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1107,7 +1107,7 @@ struct sched_class fair_sched_class __read_mostly = {
1107}; 1107};
1108 1108
1109#ifdef CONFIG_SCHED_DEBUG 1109#ifdef CONFIG_SCHED_DEBUG
1110void print_cfs_stats(struct seq_file *m, int cpu, u64 now) 1110static void print_cfs_stats(struct seq_file *m, int cpu, u64 now)
1111{ 1111{
1112 struct rq *rq = cpu_rq(cpu); 1112 struct rq *rq = cpu_rq(cpu);
1113 struct cfs_rq *cfs_rq; 1113 struct cfs_rq *cfs_rq;