]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: mark print_cfs_stats static
authorJosh Triplett <josh@kernel.org>
Thu, 9 Aug 2007 09:16:46 +0000 (11:16 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 9 Aug 2007 09:16:46 +0000 (11:16 +0200)
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>
kernel/sched_fair.c

index 7307a37cf26f304bf68fe787492299f72a75bedf..edcb4b542bca390ae6875be4da777586c363b5e6 100644 (file)
@@ -1107,7 +1107,7 @@ struct sched_class fair_sched_class __read_mostly = {
 };
 
 #ifdef CONFIG_SCHED_DEBUG
-void print_cfs_stats(struct seq_file *m, int cpu, u64 now)
+static void print_cfs_stats(struct seq_file *m, int cpu, u64 now)
 {
        struct rq *rq = cpu_rq(cpu);
        struct cfs_rq *cfs_rq;