Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [mszeredi-fuse:fusex 40/40] fs/fuse/fusex.c:1601:16: error: use of undeclared identifier 'FUSE_SUPER_MAGIC'
@ 2026-05-02 11:08 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-02 11:08 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: llvm, oe-kbuild-all, fuse-devel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git fusex
head:   1934d254361977df9fad43102ec1d72e20434a99
commit: 1934d254361977df9fad43102ec1d72e20434a99 [40/40] fuse: add fusex filesystem
config: hexagon-randconfig-002-20260502 (https://download.01.org/0day-ci/archive/20260502/202605021906.FIqlVWd9-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260502/202605021906.FIqlVWd9-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605021906.FIqlVWd9-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> fs/fuse/fusex.c:1065:2: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
    1065 |         struct fuse_inode *fi = get_fuse_inode(inode);
         |         ^
>> fs/fuse/fusex.c:1601:16: error: use of undeclared identifier 'FUSE_SUPER_MAGIC'
    1601 |         sb->s_magic = FUSE_SUPER_MAGIC;
         |                       ^~~~~~~~~~~~~~~~
   1 warning and 1 error generated.


vim +/FUSE_SUPER_MAGIC +1601 fs/fuse/fusex.c

  1574	
  1575	static int fusex_fill_super(struct super_block *sb, struct fs_context *fsc)
  1576	{
  1577		struct fuse_mount *fm = get_fuse_mount_super(sb);
  1578		struct fuse_conn *fc = fm->fc;
  1579		struct inode *inode;
  1580		struct fusex_id id;
  1581		struct fuse_statx_out statx;
  1582		struct fuse_chan_param cp;
  1583		int err;
  1584	
  1585		/* Dropped in fuse_mount_destroy() */
  1586		fuse_conn_get(fc);
  1587		fm->sb = sb;
  1588		fc->dev = sb->s_dev;
  1589	
  1590		scoped_guard(mutex, &fuse_mutex) {
  1591			list_add_tail(&fc->entry, &fuse_conn_list);
  1592			err = fuse_ctl_add_conn(fc);
  1593			if (err)
  1594				return err;
  1595		}
  1596	
  1597		err = super_setup_bdi(sb);
  1598		if (err)
  1599			return err;
  1600	
> 1601		sb->s_magic = FUSE_SUPER_MAGIC;
  1602		sb->s_op = &fusex_super_operations;
  1603		sb->s_xattr = fusex_xattr_handlers;
  1604		sb->s_maxbytes = MAX_LFS_FILESIZE;
  1605		sb->s_time_gran = 1;
  1606		sb->s_iflags |= SB_I_IMA_UNVERIFIABLE_SIGNATURE;
  1607		if (sb->s_user_ns != &init_user_ns)
  1608			sb->s_iflags |= SB_I_UNTRUSTED_MOUNTER;
  1609		sb->s_blocksize = PAGE_SIZE;
  1610		sb->s_blocksize_bits = PAGE_SHIFT;
  1611		sb->s_flags &= SB_RDONLY;
  1612		sb->s_flags |= SB_POSIXACL;
  1613	
  1614		err = fusex_send_init(fm, &id, &statx);
  1615		if (err)
  1616			return err;
  1617	
  1618		inode = fusex_iget(sb, &id);
  1619		if (inode) {
  1620			WARN_ON(!(inode_state_read_once(inode) & I_NEW));
  1621			fusex_set_attr(inode, &statx.stat);
  1622			fusex_init_inode(inode);
  1623			unlock_new_inode(inode);
  1624		}
  1625		sb->s_root = d_make_root(inode);
  1626		if (!sb->s_root)
  1627			return -ENOMEM;
  1628	
  1629		fc->parallel_dirops = true;
  1630		fc->destroy = true;
  1631	
  1632		cp.minor = fc->minor;
  1633		cp.max_write = fc->max_write;
  1634		cp.max_pages = fc->max_pages;
  1635		fuse_chan_set_initialized(fc->chan, &cp);
  1636	
  1637		return 0;
  1638	}
  1639	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [mszeredi-fuse:fusex 40/40] fs/fuse/fusex.c:1601:16: error: use of undeclared identifier 'FUSE_SUPER_MAGIC'
@ 2026-04-29 20:03 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-04-29 20:03 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: llvm, oe-kbuild-all, fuse-devel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git fusex
head:   1934d254361977df9fad43102ec1d72e20434a99
commit: 1934d254361977df9fad43102ec1d72e20434a99 [40/40] fuse: add fusex filesystem
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260429/202604292109.XXl4iUUX-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260429/202604292109.XXl4iUUX-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604292109.XXl4iUUX-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/fuse/fusex.c:1601:16: error: use of undeclared identifier 'FUSE_SUPER_MAGIC'
    1601 |         sb->s_magic = FUSE_SUPER_MAGIC;
         |                       ^
   1 error generated.


vim +/FUSE_SUPER_MAGIC +1601 fs/fuse/fusex.c

  1574	
  1575	static int fusex_fill_super(struct super_block *sb, struct fs_context *fsc)
  1576	{
  1577		struct fuse_mount *fm = get_fuse_mount_super(sb);
  1578		struct fuse_conn *fc = fm->fc;
  1579		struct inode *inode;
  1580		struct fusex_id id;
  1581		struct fuse_statx_out statx;
  1582		struct fuse_chan_param cp;
  1583		int err;
  1584	
  1585		/* Dropped in fuse_mount_destroy() */
  1586		fuse_conn_get(fc);
  1587		fm->sb = sb;
  1588		fc->dev = sb->s_dev;
  1589	
  1590		scoped_guard(mutex, &fuse_mutex) {
  1591			list_add_tail(&fc->entry, &fuse_conn_list);
  1592			err = fuse_ctl_add_conn(fc);
  1593			if (err)
  1594				return err;
  1595		}
  1596	
  1597		err = super_setup_bdi(sb);
  1598		if (err)
  1599			return err;
  1600	
> 1601		sb->s_magic = FUSE_SUPER_MAGIC;
  1602		sb->s_op = &fusex_super_operations;
  1603		sb->s_xattr = fusex_xattr_handlers;
  1604		sb->s_maxbytes = MAX_LFS_FILESIZE;
  1605		sb->s_time_gran = 1;
  1606		sb->s_iflags |= SB_I_IMA_UNVERIFIABLE_SIGNATURE;
  1607		if (sb->s_user_ns != &init_user_ns)
  1608			sb->s_iflags |= SB_I_UNTRUSTED_MOUNTER;
  1609		sb->s_blocksize = PAGE_SIZE;
  1610		sb->s_blocksize_bits = PAGE_SHIFT;
  1611		sb->s_flags &= SB_RDONLY;
  1612		sb->s_flags |= SB_POSIXACL;
  1613	
  1614		err = fusex_send_init(fm, &id, &statx);
  1615		if (err)
  1616			return err;
  1617	
  1618		inode = fusex_iget(sb, &id);
  1619		if (inode) {
  1620			WARN_ON(!(inode_state_read_once(inode) & I_NEW));
  1621			fusex_set_attr(inode, &statx.stat);
  1622			fusex_init_inode(inode);
  1623			unlock_new_inode(inode);
  1624		}
  1625		sb->s_root = d_make_root(inode);
  1626		if (!sb->s_root)
  1627			return -ENOMEM;
  1628	
  1629		fc->parallel_dirops = true;
  1630		fc->destroy = true;
  1631	
  1632		cp.minor = fc->minor;
  1633		cp.max_write = fc->max_write;
  1634		cp.max_pages = fc->max_pages;
  1635		fuse_chan_set_initialized(fc->chan, &cp);
  1636	
  1637		return 0;
  1638	}
  1639	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-02 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-02 11:08 [mszeredi-fuse:fusex 40/40] fs/fuse/fusex.c:1601:16: error: use of undeclared identifier 'FUSE_SUPER_MAGIC' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-04-29 20:03 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