All of lore.kernel.org
 help / color / mirror / Atom feed
* [brauner-github:vfs-7.2.directory.delegations 2/8] fs/namei.c:4201:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
@ 2026-05-16  3:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-16  3:43 UTC (permalink / raw)
  To: Jeff Layton
  Cc: llvm, oe-kbuild-all, Christian Brauner, Christian Brauner,
	Jan Kara

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: i386-buildonly-randconfig-001-20260516 (https://download.01.org/0day-ci/archive/20260516/202605161122.wMFet13U-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/20260516/202605161122.wMFet13U-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/202605161122.wMFet13U-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/namei.c:4201:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
    4201 |         error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, di);
         |                                      ^
   fs/namei.c:4500:38: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
    4500 |                 error = try_break_deleg(dir_inode, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                                    ^
   fs/namei.c:5116:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
    5116 |         error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                      ^
   fs/namei.c:5257:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
    5257 |         error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                      ^
>> fs/namei.c:5362:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_DELETE'
    5362 |         error = try_break_deleg(dir, LEASE_BREAK_DIR_DELETE, delegated_inode);
         |                                      ^
   fs/namei.c:5492:33: error: use of undeclared identifier 'LEASE_BREAK_DIR_DELETE'
    5492 |                         error = try_break_deleg(dir, LEASE_BREAK_DIR_DELETE, delegated_inode);
         |                                                      ^
   fs/namei.c:5639:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
    5639 |         error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                      ^
   fs/namei.c:5770:32: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
    5770 |                 error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                              ^
>> fs/namei.c:6037:26: error: use of undeclared identifier 'LEASE_BREAK_DIR_RENAME'
    6037 |                                 old_dir == new_dir ? LEASE_BREAK_DIR_RENAME :
         |                                                      ^
   fs/namei.c:6038:12: error: use of undeclared identifier 'LEASE_BREAK_DIR_DELETE'
    6038 |                                                      LEASE_BREAK_DIR_DELETE,
         |                                                      ^
   fs/namei.c:6043:36: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
    6043 |                 error = try_break_deleg(new_dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
         |                                                  ^
   11 errors generated.


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-16  3:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-16  3:43 [brauner-github:vfs-7.2.directory.delegations 2/8] fs/namei.c:4201:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.