summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace_ksym.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_ksym.c b/kernel/trace/trace_ksym.c
index 11c74f6404c..eef97e7c8db 100644
--- a/kernel/trace/trace_ksym.c
+++ b/kernel/trace/trace_ksym.c
@@ -44,12 +44,12 @@ static unsigned int ksym_tracing_enabled;
static HLIST_HEAD(ksym_filter_head);
+static DEFINE_MUTEX(ksym_tracer_mutex);
+
#ifdef CONFIG_PROFILE_KSYM_TRACER
#define MAX_UL_INT 0xffffffff
-static DEFINE_MUTEX(ksym_tracer_mutex);
-
void ksym_collect_stats(unsigned long hbp_hit_addr)
{
struct hlist_node *node;