* kernel/trace/remote_test.c:237:9: error: call to undeclared function 'tracefs_create_file'; ISO C99 and later do not support implicit function declarations
@ 2026-10-14 21:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-14 21:17 UTC (permalink / raw)
To: Vincent Donnefort; +Cc: oe-kbuild-all, linux-kernel, Steven Rostedt (Google)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0fcb05b72344f40806cbe810de8872f1698bf053
commit: ea908a2b79c84279f06d6c4fa19bf45f113a34d0 tracing: Add a trace remote module for testing
date: 7 months ago
config: hexagon-randconfig-r2110-20261014 (https://download.01.org/0day-ci/archive/20261014/202610142301.GBepPVmS-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project e1354f31346666c78d758cee13692ea3b1fe3ec2)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261014/202610142301.GBepPVmS-lkp@intel.com/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
| Fixes: ea908a2b79c8 ("tracing: Add a trace remote module for testing")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610142301.GBepPVmS-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/trace/remote_test.c:237:9: error: call to undeclared function 'tracefs_create_file'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
237 | return tracefs_create_file("write_event", 0200, d, NULL, &write_event_fops) ?
| ^
1 error generated.
--
>> kernel/trace/trace_remote.c:793:10: error: call to undeclared function 'tracefs_create_dir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
793 | root = tracefs_create_dir(TRACEFS_DIR, NULL);
| ^
>> kernel/trace/trace_remote.c:793:8: error: incompatible integer to pointer conversion assigning to 'struct dentry *' from 'int' [-Wint-conversion]
793 | root = tracefs_create_dir(TRACEFS_DIR, NULL);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/trace_remote.c:801:13: error: call to undeclared function 'tracefs_create_dir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
801 | remote_d = tracefs_create_dir(name, root);
| ^
kernel/trace/trace_remote.c:801:11: error: incompatible integer to pointer conversion assigning to 'struct dentry *' from 'int' [-Wint-conversion]
801 | remote_d = tracefs_create_dir(name, root);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/trace_remote.c:824:11: error: incompatible integer to pointer conversion assigning to 'struct dentry *' from 'int' [-Wint-conversion]
824 | percpu_d = tracefs_create_dir("per_cpu", remote_d);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/trace_remote.c:835:9: error: incompatible integer to pointer conversion assigning to 'struct dentry *' from 'int' [-Wint-conversion]
835 | cpu_d = tracefs_create_dir(cpu_name, percpu_d);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/trace/trace_remote.c:859:3: error: call to undeclared function 'tracefs_remove'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
859 | tracefs_remove(root);
| ^
kernel/trace/trace_remote.c:862:3: error: call to undeclared function 'tracefs_remove'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
862 | tracefs_remove(remote_d);
| ^
>> kernel/trace/trace_remote.c:1255:41: error: array has incomplete element type 'struct eventfs_entry'
1255 | static struct eventfs_entry dir_entries[] = {
| ^
kernel/trace/trace_remote.c:1255:16: note: forward declaration of 'struct eventfs_entry'
1255 | static struct eventfs_entry dir_entries[] = {
| ^
kernel/trace/trace_remote.c:1267:37: error: array has incomplete element type 'struct eventfs_entry'
1267 | static struct eventfs_entry entries[] = {
| ^
kernel/trace/trace_remote.c:1255:16: note: forward declaration of 'struct eventfs_entry'
1255 | static struct eventfs_entry dir_entries[] = {
| ^
>> kernel/trace/trace_remote.c:1282:13: error: call to undeclared function 'eventfs_create_events_dir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1282 | eventfs = eventfs_create_events_dir("events", remote->dentry, dir_entries,
| ^
kernel/trace/trace_remote.c:1282:13: note: did you mean 'kernfs_create_empty_dir'?
include/linux/kernfs.h:430:21: note: 'kernfs_create_empty_dir' declared here
430 | struct kernfs_node *kernfs_create_empty_dir(struct kernfs_node *parent,
| ^
>> kernel/trace/trace_remote.c:1291:13: error: call to undeclared function 'eventfs_create_dir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1291 | eventfs = eventfs_create_dir(remote_name, eventfs, NULL, 0, NULL);
| ^
kernel/trace/trace_remote.c:1291:13: note: did you mean 'kernfs_create_dir'?
include/linux/kernfs.h:622:1: note: 'kernfs_create_dir' declared here
622 | kernfs_create_dir(struct kernfs_node *parent, const char *name, umode_t mode,
| ^
>> kernel/trace/trace_remote.c:1291:11: error: incompatible integer to pointer conversion assigning to 'struct eventfs_inode *' from 'int' [-Wint-conversion]
1291 | eventfs = eventfs_create_dir(remote_name, eventfs, NULL, 0, NULL);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/trace/trace_remote.c:1299:12: error: call to undeclared function 'eventfs_create_dir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1299 | eventfs = eventfs_create_dir(evt->name, eventfs, entries, ARRAY_SIZE(entries), evt);
| ^
>> kernel/trace/trace_remote.c:1302:4: error: call to undeclared function 'eventfs_remove_events_dir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1302 | eventfs_remove_events_dir(remote->eventfs);
| ^
15 errors generated.
vim +/tracefs_create_file +237 kernel/trace/remote_test.c
234
235 static int remote_test_init_tracefs(struct dentry *d, void *unused)
236 {
> 237 return tracefs_create_file("write_event", 0200, d, NULL, &write_event_fops) ?
238 0 : -ENOMEM;
239 }
240
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-14 21:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 21:17 kernel/trace/remote_test.c:237:9: error: call to undeclared function 'tracefs_create_file'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®