]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
sched: sched.c declare variables before they get used
authorJaswinder Singh Rajput <jaswinder@infradead.org>
Mon, 29 Dec 2008 18:09:17 +0000 (23:39 +0530)
committerIngo Molnar <mingo@elte.hu>
Tue, 30 Dec 2008 06:42:34 +0000 (07:42 +0100)
commit47fea2adfc9e16846bc57c2f64ff233b354fef39
tree00e72585e260dd84f4933d6894168c497d9fb1e6
parent3c92ec8ae91ecf59d88c798301833d7cf83f2179
sched: sched.c declare variables before they get used

Impact: cleanup, avoid sparse warnings

In linux/sched.h moved out sysctl_sched_latency, sysctl_sched_min_granularity,
sysctl_sched_wakeup_granularity, sysctl_sched_shares_ratelimit and
sysctl_sched_shares_thresh from #ifdef CONFIG_SCHED_DEBUG as these variables
are common for both.

Fixes these sparse warnings:
  kernel/sched.c:825:14: warning: symbol 'sysctl_sched_shares_ratelimit' was not declared. Should it be static?
  kernel/sched.c:832:14: warning: symbol 'sysctl_sched_shares_thresh' was not declared. Should it be static?
  kernel/sched_fair.c:37:14: warning: symbol 'sysctl_sched_latency' was not declared. Should it be static?
  kernel/sched_fair.c:43:14: warning: symbol 'sysctl_sched_min_granularity' was not declared. Should it be static?
  kernel/sched_fair.c:72:14: warning: symbol 'sysctl_sched_wakeup_granularity' was not declared. Should it be static?

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h