ftrace: warning in kernel/trace/ftrace.c
authorIngo Molnar <mingo@elte.hu>
Fri, 24 Oct 2008 10:47:10 +0000 (12:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 24 Oct 2008 10:52:44 +0000 (12:52 +0200)
commitf17845e5d97ead8fbdadfd40039e058ec7cf4a42
tree14c053143dad362fce72cc77f2beb41ab6c43dec
parent66b0de3569b00f61978782b9f97aa4803dbec0fb
ftrace: warning in kernel/trace/ftrace.c

this warning:

  kernel/trace/ftrace.c:189: warning: â€˜frozen_record_count’ defined but not used

triggers because frozen_record_count is only used in the KCONFIG_MARKERS
case. Move the variable it there.

Alas, this frozen-record facility seems to have little use. The
frozen_record_count variable is not used by anything, nor the flags.

So this section might need a bit of dead-code-removal care as well.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ftrace.c