tracing: #ifdef out uses of max trace when CONFIG_TRACER_MAX_TRACE is not set
authorChen Gang <gang.chen.5i5j@gmail.com>
Mon, 9 Nov 2015 21:15:15 +0000 (05:15 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 10 Nov 2015 15:16:05 +0000 (10:16 -0500)
commite428abbbf616cd8fdd1162e4a624ad1d47b47544
tree1c8bbd0d8b22a264dcc35827892a950894e504c8
parent03e88ae6b369da2a26a6e09ad165e57d210789cd
tracing: #ifdef out uses of max trace when CONFIG_TRACER_MAX_TRACE is not set

tracing_max_lat_fops is used only when TRACER_MAX_TRACE enabled, so also
swith the related code. The related warning with defconfig under x86_64:

    CC      kernel/trace/trace.o
  kernel/trace/trace.c:5466:37: warning: ‘tracing_max_lat_fops’ defined but not used [-Wunused-const-variable]
   static const struct file_operations tracing_max_lat_fops = {

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c