linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: oe-kbuild-all@lists.linux.dev, linux-fsdevel@vger.kernel.org
Subject: [viro-vfs:carved-up-__dentry_kill 22/28] fs/dcache.c:1101:33: error: 'dentry' undeclared
Date: Wed, 6 Dec 2023 08:29:37 +0800	[thread overview]
Message-ID: <202312060802.HxDqIoDc-lkp@intel.com> (raw)

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

             reply	other threads:[~2023-12-06  0:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-06  0:29 kernel test robot [this message]
2023-12-06  1:01 ` [viro-vfs:carved-up-__dentry_kill 22/28] fs/dcache.c:1101:33: error: 'dentry' undeclared Al Viro

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=202312060802.HxDqIoDc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=viro@zeniv.linux.org.uk \
    /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 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).