[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108210848.hCJREGxj-lkp@intel.com>
Date: Sat, 21 Aug 2021 08:40:59 +0800
From: kernel test robot <lkp@...el.com>
To: Jeff Layton <jlayton@...nel.org>
Cc: clang-built-linux@...glegroups.com, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [jlayton:locks-next 4/4] fs/9p/vfs_file.c:322:1: warning: unused
label 'out_err'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git locks-next
head: d252e76f8180b23e595949307ce3af3fe84a6150
commit: d252e76f8180b23e595949307ce3af3fe84a6150 [4/4] fs: remove mandatory file locking support
config: x86_64-randconfig-a012-20210820 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa)
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/jlayton/linux.git/commit/?id=d252e76f8180b23e595949307ce3af3fe84a6150
git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
git fetch --no-tags jlayton locks-next
git checkout d252e76f8180b23e595949307ce3af3fe84a6150
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> fs/9p/vfs_file.c:322:1: warning: unused label 'out_err' [-Wunused-label]
out_err:
^~~~~~~~
1 warning generated.
vim +/out_err +322 fs/9p/vfs_file.c
1d769cd192fc8c M. Mohan Kumar 2010-09-27 294
a099027c779068 M. Mohan Kumar 2010-09-27 295 /**
a099027c779068 M. Mohan Kumar 2010-09-27 296 * v9fs_file_lock_dotl - lock a file (or directory)
a099027c779068 M. Mohan Kumar 2010-09-27 297 * @filp: file to be locked
a099027c779068 M. Mohan Kumar 2010-09-27 298 * @cmd: lock command
a099027c779068 M. Mohan Kumar 2010-09-27 299 * @fl: file lock structure
a099027c779068 M. Mohan Kumar 2010-09-27 300 *
a099027c779068 M. Mohan Kumar 2010-09-27 301 */
a099027c779068 M. Mohan Kumar 2010-09-27 302
a099027c779068 M. Mohan Kumar 2010-09-27 303 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl)
a099027c779068 M. Mohan Kumar 2010-09-27 304 {
496ad9aa8ef448 Al Viro 2013-01-23 305 struct inode *inode = file_inode(filp);
a099027c779068 M. Mohan Kumar 2010-09-27 306 int ret = -ENOLCK;
a099027c779068 M. Mohan Kumar 2010-09-27 307
4b8e992392a246 Al Viro 2014-08-19 308 p9_debug(P9_DEBUG_VFS, "filp: %p cmd:%d lock: %p name: %pD\n",
4b8e992392a246 Al Viro 2014-08-19 309 filp, cmd, fl, filp);
a099027c779068 M. Mohan Kumar 2010-09-27 310
a099027c779068 M. Mohan Kumar 2010-09-27 311 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) {
a099027c779068 M. Mohan Kumar 2010-09-27 312 filemap_write_and_wait(inode->i_mapping);
a099027c779068 M. Mohan Kumar 2010-09-27 313 invalidate_mapping_pages(&inode->i_data, 0, -1);
a099027c779068 M. Mohan Kumar 2010-09-27 314 }
a099027c779068 M. Mohan Kumar 2010-09-27 315
a099027c779068 M. Mohan Kumar 2010-09-27 316 if (IS_SETLK(cmd) || IS_SETLKW(cmd))
a099027c779068 M. Mohan Kumar 2010-09-27 317 ret = v9fs_file_do_lock(filp, cmd, fl);
1d769cd192fc8c M. Mohan Kumar 2010-09-27 318 else if (IS_GETLK(cmd))
1d769cd192fc8c M. Mohan Kumar 2010-09-27 319 ret = v9fs_file_getlock(filp, fl);
a099027c779068 M. Mohan Kumar 2010-09-27 320 else
a099027c779068 M. Mohan Kumar 2010-09-27 321 ret = -EINVAL;
a099027c779068 M. Mohan Kumar 2010-09-27 @322 out_err:
a099027c779068 M. Mohan Kumar 2010-09-27 323 return ret;
a099027c779068 M. Mohan Kumar 2010-09-27 324 }
a099027c779068 M. Mohan Kumar 2010-09-27 325
:::::: The code at line 322 was first introduced by commit
:::::: a099027c779068b834f335cfdc3f2bf10f531dd9 9p: Implement TLOCK
:::::: TO: M. Mohan Kumar <mohan@...ibm.com>
:::::: CC: Eric Van Hensbergen <ericvh@...il.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (36337 bytes)
Powered by blists - more mailing lists