Skip to contentSkip to conversation

fs/namei.c:4201:38: error: 'LEASE_BREAK_DIR_CREATE' undeclared

PATCH kernel test robot 1 participant 1 message May 16

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://github.com/brauner/linux.git vfs-7.2.directory.delegations
head:   1e325f7debec9bb22c71bc7336135bf8f87b730a
commit: 24cbf43337f46329ddda5983bc3c585174a020ee [2/8] filelock: add support for ignoring deleg breaks for dir change events
config: x86_64-buildonly-randconfig-004-20260516 (https://download.01.org/0day-ci/archive/20260516/[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/20260516/[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/namei.c: In function 'vfs_create':

>> fs/namei.c:4201:38: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
    4201 |         error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, di);
         |                                      ^~~~~~~~~~~~~~~~~~~~~~
   fs/namei.c:4201:38: note: each undeclared identifier is reported only once for each function it appears in
   fs/namei.c: In function 'lookup_open':
   fs/namei.c:4500:52: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
    4500 |                 error = try_break_deleg(dir_inode, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                                    ^~~~~~~~~~~~~~~~~~~~~~
   fs/namei.c: In function 'vfs_mknod':
   fs/namei.c:5116:38: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
    5116 |         error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                      ^~~~~~~~~~~~~~~~~~~~~~
   fs/namei.c: In function 'vfs_mkdir':
   fs/namei.c:5257:38: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
    5257 |         error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                      ^~~~~~~~~~~~~~~~~~~~~~
   fs/namei.c: In function 'vfs_rmdir':
>> fs/namei.c:5362:38: error: 'LEASE_BREAK_DIR_DELETE' undeclared (first use in this function)
    5362 |         error = try_break_deleg(dir, LEASE_BREAK_DIR_DELETE, delegated_inode);
         |                                      ^~~~~~~~~~~~~~~~~~~~~~
   fs/namei.c: In function 'vfs_unlink':
   fs/namei.c:5492:54: error: 'LEASE_BREAK_DIR_DELETE' undeclared (first use in this function)
    5492 |                         error = try_break_deleg(dir, LEASE_BREAK_DIR_DELETE, delegated_inode);
         |                                                      ^~~~~~~~~~~~~~~~~~~~~~
   fs/namei.c: In function 'vfs_symlink':
   fs/namei.c:5639:38: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
    5639 |         error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                      ^~~~~~~~~~~~~~~~~~~~~~
   fs/namei.c: In function 'vfs_link':
   fs/namei.c:5770:46: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
    5770 |                 error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                              ^~~~~~~~~~~~~~~~~~~~~~
   fs/namei.c: In function 'vfs_rename':
>> fs/namei.c:6037:54: error: 'LEASE_BREAK_DIR_RENAME' undeclared (first use in this function)
    6037 |                                 old_dir == new_dir ? LEASE_BREAK_DIR_RENAME :
         |                                                      ^~~~~~~~~~~~~~~~~~~~~~
   fs/namei.c:6038:54: error: 'LEASE_BREAK_DIR_DELETE' undeclared (first use in this function)
    6038 |                                                      LEASE_BREAK_DIR_DELETE,
         |                                                      ^~~~~~~~~~~~~~~~~~~~~~
   fs/namei.c:6043:50: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
    6043 |                 error = try_break_deleg(new_dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                                  ^~~~~~~~~~~~~~~~~~~~~~

vim +/LEASE_BREAK_DIR_CREATE +4201 fs/namei.c

4168
4169 /**
4170 * vfs_create - create new file
4171 * @idmap: idmap of the mount the inode was found from
4172 * @dentry: dentry of the child file
4173 * @mode: mode of the child file
4174 * @di: returns parent inode, if the inode is delegated.
4175 *
4176 * Create a new file.
4177 *
4178 * If the inode has been found through an idmapped mount the idmap of
4179 * the vfsmount must be passed through @idmap. This function will then take
4180 * care to map the inode according to @idmap before checking permissions.
4181 * On non-idmapped mounts or if permission checking is to be performed on the
4182 * raw inode simply pass @nop_mnt_idmap.
4183 */
4184 int vfs_create(struct mnt_idmap *idmap, struct dentry *dentry, umode_t mode,
4185 struct delegated_inode *di)
4186 {
4187 struct inode *dir = d_inode(dentry->d_parent);
4188 int error;
4189
4190 error = may_create_dentry(idmap, dir, dentry);
4191 if (error)
4192 return error;
4193
4194 if (!dir->i_op->create)
4195 return -EACCES; /* shouldn't it be ENOSYS? */
4196
4197 mode = vfs_prepare_mode(idmap, dir, mode, S_IALLUGO, S_IFREG);
4198 error = security_inode_create(dir, dentry, mode);
4199 if (error)
4200 return error;

> 4201		error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, di);

4202 if (error)
4203 return error;
4204 error = dir->i_op->create(idmap, dir, dentry, mode, true);
4205 if (!error)
4206 fsnotify_create(dir, dentry);
4207 return error;
4208 }
4209 EXPORT_SYMBOL(vfs_create);
4210

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