Re: [PATCH v3] tracefs: Add read-only eventfs filesystem at /sys/kernel/events

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all,org.kernel.vger.linux-kernel,org.kernel.vger.linux-trace-kernel
Message-ID <[email protected]>
Hi Steven,

kernel test robot noticed the following build errors:

[auto build test ERROR on v7.2]
[also build test ERROR on next-20260819]
[cannot apply to trace/for-next linus/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Steven-Rostedt/tracefs-Add-read-only-eventfs-filesystem-at-sys-kernel-events/20260810-160708
base:   v7.2
patch link:    https://lore.kernel.org/r/20260810160708.3460a2fd%40gandalf.local.home
patch subject: [PATCH v3] tracefs: Add read-only eventfs filesystem at /sys/kernel/events
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20260820/[email protected]/config)
compiler: powerpc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260820/[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 >>):

   fs/tracefs/event_inode.c: In function 'eventfs_ro_fill_super':
>> fs/tracefs/event_inode.c:38:23: error: 'EVENTFS_SUPER_MAGIC' undeclared (first use in this function)
      38 |         sb->s_magic = EVENTFS_SUPER_MAGIC;
         |                       ^~~~~~~~~~~~~~~~~~~
   fs/tracefs/event_inode.c:38:23: note: each undeclared identifier is reported only once for each function it appears in


vim +/EVENTFS_SUPER_MAGIC +38 fs/tracefs/event_inode.c

    30	
    31	static int eventfs_ro_fill_super(struct super_block *sb, struct fs_context *fc)
    32	{
    33		struct inode *inode;
    34		struct dentry *root;
    35	
    36		sb->s_blocksize = PAGE_SIZE;
    37		sb->s_blocksize_bits = PAGE_SHIFT;
  > 38		sb->s_magic = EVENTFS_SUPER_MAGIC;
    39		sb->s_op = &eventfs_ro_super_operations;
    40		sb->s_time_gran = 1;
    41		sb->s_flags |= SB_RDONLY;
    42	
    43		inode = new_inode(sb);
    44		if (!inode)
    45			return -ENOMEM;
    46	
    47		inode->i_ino = 1;
    48		inode->i_mode = S_IFDIR | 0555;
    49		simple_inode_init_ts(inode);
    50		inode->i_op = &simple_dir_inode_operations;
    51		inode->i_fop = &simple_dir_operations;
    52		set_nlink(inode, 2);
    53	
    54		set_default_d_op(sb, &tracefs_dentry_operations);
    55	
    56		root = d_make_root(inode);
    57		if (!root)
    58			return -ENOMEM;
    59	
    60		sb->s_root = root;
    61	
    62		return 0;
    63	}
    64	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.