mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vincent Donnefort <vdonnefort@google.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	"Steven Rostedt (Google)" <rostedt@goodmis.org>
Subject: 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
Date: Wed, 14 Oct 2026 23:17:01 +0200	[thread overview]
Message-ID: <202610142301.GBepPVmS-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-10-14 21:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202610142301.GBepPVmS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rostedt@goodmis.org \
    --cc=vdonnefort@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®