public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [vfs-idmapping:fs.posix_acl.vfsuid 12/37] fs/cifs/cifsacl.c:1684:20: warning: variable 'pTcon' set but not used
@ 2022-09-09 17:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-09 17:37 UTC (permalink / raw)
  To: Christian Brauner; +Cc: llvm, kbuild-all, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-09 17:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-09 17:37 [vfs-idmapping:fs.posix_acl.vfsuid 12/37] fs/cifs/cifsacl.c:1684:20: warning: variable 'pTcon' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox