Skip to content

Commit b4bade5

Browse files
committed
tracing: Move d_max_latency out of CONFIG_FSNOTIFY protection
The tracing_max_latency shouldn't be limited if CONFIG_FSNOTIFY is defined or not and it was moved out of that protection to be always available with CONFIG_TRACER_MAX_TRACE. All was moved out except the dentry descriptor for it (d_max_latency) and it failed to build on some configs. Move that out of the CONFIG_FSNOTIFY protection too. Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://patch.msgid.link/20260209194631.788bfc85@fedora Fixes: ba73713 ("tracing: Clean up use of trace_create_maxlat_file()") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202602092133.fTdojd95-lkp@intel.com/ Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent c4f1fe4 commit b4bade5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/trace/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ struct trace_array {
348348
unsigned int snapshot;
349349
#ifdef CONFIG_TRACER_MAX_TRACE
350350
unsigned long max_latency;
351-
#ifdef CONFIG_FSNOTIFY
352351
struct dentry *d_max_latency;
352+
#ifdef CONFIG_FSNOTIFY
353353
struct work_struct fsnotify_work;
354354
struct irq_work fsnotify_irqwork;
355355
#endif /* CONFIG_FSNOTIFY */

0 commit comments

Comments
 (0)