linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [jlayton:locks-next 4/4] fs/9p/vfs_file.c:322:1: warning: unused label 'out_err'
@ 2021-08-21  0:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-21  0:40 UTC (permalink / raw)
  To: Jeff Layton; +Cc: clang-built-linux, kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3939 bytes --]

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@intel.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@in.ibm.com>
:::::: CC: Eric Van Hensbergen <ericvh@gmail.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36337 bytes --]

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

only message in thread, other threads:[~2021-08-21  0:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21  0:40 [jlayton:locks-next 4/4] fs/9p/vfs_file.c:322:1: warning: unused label 'out_err' 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;
as well as URLs for NNTP newsgroup(s).