From: Josh Triplett 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 Cc: Ingo Molnar Signed-off-by: Andrew Morton --- kernel/sched_fair.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/sched_fair.c~cfs-mark-print_cfs_stats-static kernel/sched_fair.c --- a/kernel/sched_fair.c~cfs-mark-print_cfs_stats-static +++ a/kernel/sched_fair.c @@ -1120,7 +1120,7 @@ struct sched_class fair_sched_class __re }; #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; _