rcu: Define tracepoint strings only if CONFIG_TRACING is set
commita8a29b3b7b18251c4e3ffce501f25ae868302a75
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sat, 12 Jul 2014 17:01:49 +0000 (12 19:01 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 7 Sep 2014 23:18:14 +0000 (7 16:18 -0700)
treec1a38c47ae43dc8f89e17d32a3c19434470cd78e
parent85b39d305bfe809a11ff2770d380be3e2465beec
rcu: Define tracepoint strings only if CONFIG_TRACING is set

Commit f7f7bac9cb1c ("rcu: Have the RCU tracepoints use the tracepoint_string
infrastructure") unconditionally populates the __tracepoint_str input section,
but this section is not assigned an output section if CONFIG_TRACING is not set.
This results in the __tracepoint_str turning up in unexpected places, i.e.,
after _edata.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c