tree: https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git urgent head: 2379221e8c43a4be62811f4d8a71cfffc23df5b0 commit: 2379221e8c43a4be62811f4d8a71cfffc23df5b0 [10/10] efivarfs: use INODE_CHILD nested lock to traverse variables on resume config: riscv-randconfig-001-20250317 (https://download.01.org/0day-ci/archive/20250317/202503172331.vqCmniUS-lkp@xxxxxxxxx/config) compiler: riscv64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250317/202503172331.vqCmniUS-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202503172331.vqCmniUS-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): fs/efivarfs/super.c: In function 'efivarfs_actor': >> fs/efivarfs/super.c:424:34: error: 'INODE_CHILD' undeclared (first use in this function); did you mean 'I_MUTEX_CHILD'? 424 | inode_lock_nested(inode, INODE_CHILD); | ^~~~~~~~~~~ | I_MUTEX_CHILD fs/efivarfs/super.c:424:34: note: each undeclared identifier is reported only once for each function it appears in vim +424 fs/efivarfs/super.c 401 402 static bool efivarfs_actor(struct dir_context *ctx, const char *name, int len, 403 loff_t offset, u64 ino, unsigned mode) 404 { 405 unsigned long size; 406 struct efivarfs_ctx *ectx = container_of(ctx, struct efivarfs_ctx, ctx); 407 struct qstr qstr = { .name = name, .len = len }; 408 struct dentry *dentry = d_hash_and_lookup(ectx->sb->s_root, &qstr); 409 struct inode *inode; 410 struct efivar_entry *entry; 411 int err; 412 413 if (IS_ERR_OR_NULL(dentry)) 414 return true; 415 416 inode = d_inode(dentry); 417 entry = efivar_entry(inode); 418 419 err = efivar_entry_size(entry, &size); 420 size += sizeof(__u32); /* attributes */ 421 if (err) 422 size = 0; 423 > 424 inode_lock_nested(inode, INODE_CHILD); 425 i_size_write(inode, size); 426 inode_unlock(inode); 427 428 if (!size) { 429 ectx->dentry = dentry; 430 return false; 431 } 432 433 dput(dentry); 434 435 return true; 436 } 437 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki