lkml.org 
[lkml]   [2008]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: sched.c declare variables before they get used

* Jaswinder Singh Rajput <jaswinder@infradead.org> wrote:

> 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>
> ---
> include/linux/sched.h | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)

applied to tip/sched/cleanups, thanks!

Ingo


\
 
 \ /
  Last update: 2008-12-30 07:45    [W:0.044 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site