Skip to content

Commit

Permalink
[PATCH] sched: mark sysrq_sched_debug_show() static
Browse files Browse the repository at this point in the history
Only sched.c uses sysrq_sched_debug_show, and sched.c includes sched_debug.c,
so all uses of sysrq_sched_debug_show occur in the same source file.

Eliminates a sparse warning:
warning: symbol 'sysrq_sched_debug_show' was not declared. Should it be static?

Signed-off-by: Josh Triplett <josh@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Josh Triplett authored and Ingo Molnar committed Jul 26, 2007
1 parent 2cd4d0e commit f337346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static int sched_debug_show(struct seq_file *m, void *v)
return 0;
}

void sysrq_sched_debug_show(void)
static void sysrq_sched_debug_show(void)
{
sched_debug_show(NULL, NULL);
}
Expand Down

0 comments on commit f337346

Please sign in to comment.