From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jlayton:dir-deleg 29/30] fs/namei.c:3265:38: error: 'LEASE_BREAK_DIR_CREATE' undeclared
Date: Tue, 6 Aug 2024 08:38:17 +0800 [thread overview]
Message-ID: <202408060841.BdwTriU7-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git dir-deleg
head: 3ef3065a07c0fc797ef9b034216f09d8b324e0b1
commit: 121ae7108b842f3ca7dc5dfd771ae94fe41fcecb [29/30] fs: add a "reason" parameter to try_break_deleg
config: m68k-m5407c3_defconfig (https://download.01.org/0day-ci/archive/20240806/202408060841.BdwTriU7-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240806/202408060841.BdwTriU7-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/202408060841.BdwTriU7-lkp@intel.com/
All errors (new ones prefixed by >>):
fs/namei.c: In function '__vfs_create':
>> fs/namei.c:3265:38: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
3265 | error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:3265: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:3582:52: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
3582 | error = try_break_deleg(dir_inode, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c: In function 'open_last_lookups':
fs/namei.c:3613:16: error: variable 'delegated_inode' has initializer but incomplete type
3613 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:3613:32: error: storage size of 'delegated_inode' isn't known
3613 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:3613:32: warning: unused variable 'delegated_inode' [-Wunused-variable]
fs/namei.c: In function '__vfs_mknod':
fs/namei.c:4097:38: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
4097 | error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c: In function 'do_mknodat':
fs/namei.c:4155:16: error: variable 'delegated_inode' has initializer but incomplete type
4155 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:4155:32: error: storage size of 'delegated_inode' isn't known
4155 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:4155:32: warning: unused variable 'delegated_inode' [-Wunused-variable]
fs/namei.c: In function '__vfs_mkdir':
fs/namei.c:4240:38: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
4240 | error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c: In function 'do_mkdirat':
fs/namei.c:4278:16: error: variable 'delegated_inode' has initializer but incomplete type
4278 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:4278:32: error: storage size of 'delegated_inode' isn't known
4278 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:4278:32: warning: unused variable 'delegated_inode' [-Wunused-variable]
fs/namei.c: In function '__vfs_rmdir':
>> fs/namei.c:4339:38: error: 'LEASE_BREAK_DIR_DELETE' undeclared (first use in this function)
4339 | error = try_break_deleg(dir, LEASE_BREAK_DIR_DELETE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c: In function 'do_rmdir':
fs/namei.c:4389:16: error: variable 'delegated_inode' has initializer but incomplete type
4389 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:4389:32: error: storage size of 'delegated_inode' isn't known
4389 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:4389:32: warning: unused variable 'delegated_inode' [-Wunused-variable]
fs/namei.c: In function 'vfs_unlink':
fs/namei.c:4496:54: error: 'LEASE_BREAK_DIR_DELETE' undeclared (first use in this function)
4496 | error = try_break_deleg(dir, LEASE_BREAK_DIR_DELETE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c: In function 'do_unlinkat':
fs/namei.c:4538:16: error: variable 'delegated_inode' has initializer but incomplete type
4538 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:4538:32: error: storage size of 'delegated_inode' isn't known
4538 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:4538:32: warning: unused variable 'delegated_inode' [-Wunused-variable]
fs/namei.c: In function 'vfs_link':
fs/namei.c:4770:46: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
4770 | error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c: In function 'do_linkat':
fs/namei.c:4804:16: error: variable 'delegated_inode' has initializer but incomplete type
4804 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:4804:32: error: storage size of 'delegated_inode' isn't known
4804 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:4804:32: warning: unused variable 'delegated_inode' [-Wunused-variable]
fs/namei.c: In function 'vfs_rename':
>> fs/namei.c:5039:54: error: 'LEASE_BREAK_DIR_RENAME' undeclared (first use in this function)
5039 | old_dir == new_dir ? LEASE_BREAK_DIR_RENAME :
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:5040:54: error: 'LEASE_BREAK_DIR_DELETE' undeclared (first use in this function)
5040 | LEASE_BREAK_DIR_DELETE,
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c:5045:50: error: 'LEASE_BREAK_DIR_CREATE' undeclared (first use in this function)
5045 | error = try_break_deleg(new_dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
| ^~~~~~~~~~~~~~~~~~~~~~
fs/namei.c: In function 'do_renameat2':
fs/namei.c:5107:16: error: variable 'delegated_inode' has initializer but incomplete type
5107 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:5107:32: error: storage size of 'delegated_inode' isn't known
5107 | struct delegated_inode delegated_inode = { };
| ^~~~~~~~~~~~~~~
fs/namei.c:5107:32: warning: unused variable 'delegated_inode' [-Wunused-variable]
vim +/LEASE_BREAK_DIR_CREATE +3265 fs/namei.c
3247
3248 static int __vfs_create(struct mnt_idmap *idmap, struct inode *dir,
3249 struct dentry *dentry, umode_t mode, bool want_excl,
3250 struct delegated_inode *delegated_inode)
3251 {
3252 int error;
3253
3254 error = may_create(idmap, dir, dentry);
3255 if (error)
3256 return error;
3257
3258 if (!dir->i_op->create)
3259 return -EACCES; /* shouldn't it be ENOSYS? */
3260
3261 mode = vfs_prepare_mode(idmap, dir, mode, S_IALLUGO, S_IFREG);
3262 error = security_inode_create(dir, dentry, mode);
3263 if (error)
3264 return error;
> 3265 error = try_break_deleg(dir, LEASE_BREAK_DIR_CREATE, delegated_inode);
3266 if (error)
3267 return error;
3268 error = dir->i_op->create(idmap, dir, dentry, mode, want_excl);
3269 if (!error)
3270 fsnotify_create(dir, dentry);
3271 return error;
3272 }
3273
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-08-06 0:38 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=202408060841.BdwTriU7-lkp@intel.com \
--to=lkp@intel.com \
--cc=jlayton@kernel.org \
--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.