printk: declare printk_ratelimit_state in ratelimit.h
authorNamhyung Kim <namhyung@gmail.com>
Tue, 26 Oct 2010 21:22:49 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:16 +0000 (16:52 -0700)
commitf5d87d851d76a390d0fab2f77bd1d563d69ee586
tree4056332405b630e3bd2663beb3dcbf16955095cd
parent674dff6507d3f9b110219ea125cf5e1213c9acef
printk: declare printk_ratelimit_state in ratelimit.h

Adding declaration of printk_ratelimit_state in ratelimit.h removes
potential build breakage and following sparse warning:

 kernel/printk.c:1426:1: warning: symbol 'printk_ratelimit_state' was not declared. Should it be static?

[akpm@linux-foundation.org: remove unneeded ifdef]
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/ratelimit.h
kernel/sysctl.c