From: kernel test robot <lkp@intel.com>
To: Christian Brauner <brauner@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [vfs-idmapping:fs.posix_acl.vfsuid 12/37] fs/cifs/cifsacl.c:1684:20: warning: variable 'pTcon' set but not used
Date: Sat, 10 Sep 2022 01:37:51 +0800 [thread overview]
Message-ID: <202209100159.gx43mPbM-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git fs.posix_acl.vfsuid
head: d37e11d9b40fc35810217121aa3205b7975fd4c6
commit: fa37058424f3ca8becc99200b11a3690537f134e [12/37] cifs: add ->get_dentry_acl() method
config: x86_64-randconfig-a001 (https://download.01.org/0day-ci/archive/20220910/202209100159.gx43mPbM-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git/commit/?id=fa37058424f3ca8becc99200b11a3690537f134e
git remote add vfs-idmapping https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git
git fetch --no-tags vfs-idmapping fs.posix_acl.vfsuid
git checkout fa37058424f3ca8becc99200b11a3690537f134e
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/cifs/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> fs/cifs/cifsacl.c:1684:20: warning: variable 'pTcon' set but not used [-Wunused-but-set-variable]
struct cifs_tcon *pTcon;
^
1 warning generated.
vim +/pTcon +1684 fs/cifs/cifsacl.c
1674
1675 struct posix_acl *cifs_get_dentry_acl(struct user_namespace *mnt_userns,
1676 struct dentry *dentry, int type)
1677 {
1678 struct posix_acl *acl = NULL;
1679 ssize_t rc = -EOPNOTSUPP;
1680 unsigned int xid;
1681 struct super_block *sb = dentry->d_sb;
1682 struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
1683 struct tcon_link *tlink;
> 1684 struct cifs_tcon *pTcon;
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-09-09 17:39 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=202209100159.gx43mPbM-lkp@intel.com \
--to=lkp@intel.com \
--cc=brauner@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox