All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Christian Brauner <christianvanbrauner@gmail.com>,
	Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>
Subject: [brauner-github:vfs-7.2.directory.delegations 2/8] fs/namei.c:4201:31: error: use of undeclared identifier 'LEASE_BREAK_DIR_CREATE'
Date: Sat, 16 May 2026 11:43:04 +0800	[thread overview]
Message-ID: <202605161122.wMFet13U-lkp@intel.com> (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: 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

                 reply	other threads:[~2026-05-16  3:43 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=202605161122.wMFet13U-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=brauner@kernel.org \
    --cc=christianvanbrauner@gmail.com \
    --cc=jack@suse.cz \
    --cc=jlayton@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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.