summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/tracepoint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c
index 070a42bb8920..35dd27adb82c 100644
--- a/kernel/tracepoint.c
+++ b/kernel/tracepoint.c
@@ -579,6 +579,8 @@ __initcall(init_tracepoints);
#endif /* CONFIG_MODULES */
+#ifdef CONFIG_FTRACE_SYSCALLS
+
static DEFINE_MUTEX(regfunc_mutex);
static int sys_tracepoint_refcount;
@@ -615,3 +617,4 @@ void syscall_unregfunc(void)
}
mutex_unlock(&regfunc_mutex);
}
+#endif