Skip to content

Commit 8d8d276

Browse files
committed
Merge tag 'trace-v6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull tracing fixes from Steven Rostedt: - Move declaration of interface_lock outside of CONFIG_TIMERLAT_TRACER The fix to some locking races moved the declaration of the interface_lock up in the file, but also moved it into the CONFIG_TIMERLAT_TRACER #ifdef block, breaking the build when that wasn't set. Move it further up and out of that #ifdef block. - Remove unused function run_tracer_selftest() stub When CONFIG_FTRACE_STARTUP_TEST is not set the stub function run_tracer_selftest() is not used and clang is warning about it. Remove the function stub as it is not needed. * tag 'trace-v6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: tracing: Drop unused helper function to fix the build tracing/osnoise: Fix build when timerlat is not enabled
2 parents bc83b4d + 4e37815 commit 8d8d276

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

kernel/trace/trace.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,10 +2226,6 @@ static __init int init_trace_selftests(void)
22262226
}
22272227
core_initcall(init_trace_selftests);
22282228
#else
2229-
static inline int run_tracer_selftest(struct tracer *type)
2230-
{
2231-
return 0;
2232-
}
22332229
static inline int do_run_tracer_selftest(struct tracer *type)
22342230
{
22352231
return 0;

kernel/trace/trace_osnoise.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ static inline struct osnoise_variables *this_cpu_osn_var(void)
228228
return this_cpu_ptr(&per_cpu_osnoise_var);
229229
}
230230

231+
/*
232+
* Protect the interface.
233+
*/
234+
static struct mutex interface_lock;
235+
231236
#ifdef CONFIG_TIMERLAT_TRACER
232237
/*
233238
* Runtime information for the timer mode.
@@ -252,11 +257,6 @@ static inline struct timerlat_variables *this_cpu_tmr_var(void)
252257
return this_cpu_ptr(&per_cpu_timerlat_var);
253258
}
254259

255-
/*
256-
* Protect the interface.
257-
*/
258-
static struct mutex interface_lock;
259-
260260
/*
261261
* tlat_var_reset - Reset the values of the given timerlat_variables
262262
*/

0 commit comments

Comments
 (0)