tracing: Fix compile error in module tracepoints when MODULE_UNLOAD not set
authorSteven Rostedt <srostedt@redhat.com>
Mon, 29 Mar 2010 18:25:18 +0000 (14:25 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 1 Apr 2010 02:56:59 +0000 (22:56 -0400)
If modules are configured in the build but unloading of modules is not,
then the refcnt is not defined. Place the get/put module tracepoints
under CONFIG_MODULE_UNLOAD since it references this field in the module
structure.

As a side-effect, this patch also reduces the code when MODULE_UNLOAD
is not set, because these unused tracepoints are not created.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

No differences found