From: Steven Rostedt (Red Hat) Date: Sat, 2 Mar 2013 22:37:14 +0000 (-0500) Subject: tracing: Fix trace events build without modules X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~134^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=315326c16ad08771fe0f075a08a18c99976f29f5;p=pandora-kernel.git tracing: Fix trace events build without modules The new multi-buffers added a descriptor that kept track of module events, and the directories they use, with struct ftace_module_file_ops. This is used to add a ref count to keep modules from unloading while their files are being accessed. As the descriptor is only needed when CONFIG_MODULES is enabled, it is only declared when the config is enabled. But that struct is dereferenced in a few areas outside the #ifdef CONFIG_MODULES. By adding some helper routines and moving code around a little, events can be compiled again without modules. Reported-by: Fengguang Wu Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed