kernel/trace/trace_snapshot.c:395:20: error: redefinition of 'latency_fsnotify'
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace trace/for-next head: e197453eb0c110d3d83fd1d2b324a93d5fcfa314 commit: bade44fe546212e142befb69ba22f34944030a99 [13/16] tracing: Move snapshot code out of trace.c and into trace_snapshot.c config: i386-buildonly-randconfig-005-20260331 (https://download.01.org/0day-ci/archive/20260331/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260331/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> kernel/trace/trace_snapshot.c:395:20: error: redefinition of 'latency_fsnotify'
395 | static inline void latency_fsnotify(struct trace_array *tr) { }
| ^~~~~~~~~~~~~~~~
In file included from kernel/trace/trace_snapshot.c:6:
kernel/trace/trace.h:852:20: note: previous definition of 'latency_fsnotify' with type 'void(struct trace_array *)'
852 | static inline void latency_fsnotify(struct trace_array *tr) { }
| ^~~~~~~~~~~~~~~~vim +/latency_fsnotify +395 kernel/trace/trace_snapshot.c
382
383 void latency_fsnotify(struct trace_array *tr)
384 {
385 if (!fsnotify_wq)
386 return;
387 /*
388 * We cannot call queue_work(&tr->fsnotify_work) from here because it's
389 * possible that we are called from __schedule() or do_idle(), which
390 * could cause a deadlock.
391 */
392 irq_work_queue(&tr->fsnotify_irqwork);
393 }
394 #else
> 395 static inline void latency_fsnotify(struct trace_array *tr) { } 396 #endif /* LATENCY_FS_NOTIFY */
397 static const struct file_operations tracing_max_lat_fops;
398
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki