linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [viro-vfs:carved-up-__dentry_kill 22/28] fs/dcache.c:1101:33: error: 'dentry' undeclared
@ 2023-12-06  0:29 kernel test robot
  2023-12-06  1:01 ` Al Viro
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2023-12-06  0:29 UTC (permalink / raw)
  To: Al Viro; +Cc: oe-kbuild-all, linux-fsdevel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git carved-up-__dentry_kill
head:   20f7d1936e8a2859fee51273c8ffadcca4304968
commit: c73bce0494d44e0d26ec351106558e4408cf1cd9 [22/28] step 3: have __dentry_kill() return the parent
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20231206/202312060802.HxDqIoDc-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312060802.HxDqIoDc-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/202312060802.HxDqIoDc-lkp@intel.com/

Note: the viro-vfs/carved-up-__dentry_kill HEAD 20f7d1936e8a2859fee51273c8ffadcca4304968 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   fs/dcache.c: In function 'shrink_kill':
>> fs/dcache.c:1101:33: error: 'dentry' undeclared (first use in this function)
    1101 |         struct dentry *parent = dentry->d_parent;
         |                                 ^~~~~~
   fs/dcache.c:1101:33: note: each undeclared identifier is reported only once for each function it appears in
>> fs/dcache.c:1102:33: error: expected expression before 'if'
    1102 |         if (parent != victim && if (!--parent->d_lockref.count)
         |                                 ^~
>> fs/dcache.c:1107:1: error: expected expression before '}' token
    1107 | }
         | ^


vim +/dentry +1101 fs/dcache.c

  1098	
  1099	static inline void shrink_kill(struct dentry *victim, struct list_head *list)
  1100	{
> 1101		struct dentry *parent = dentry->d_parent;
> 1102		if (parent != victim && if (!--parent->d_lockref.count)
  1103			to_shrink_list(parent, list);
  1104		parent = __dentry_kill(dentry);
  1105		if (parent)
  1106			spin_unlock(&parent->d_lock);
> 1107	}
  1108	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-06  1:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06  0:29 [viro-vfs:carved-up-__dentry_kill 22/28] fs/dcache.c:1101:33: error: 'dentry' undeclared kernel test robot
2023-12-06  1:01 ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).