[linux-next:master 11662/12034] fs/nfs/nfs4proc.c:4008:5: warning: no previous prototype for function 'nfs4_discover_trunking'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   32ce2abb03cfae17a9eb42bd6b1b619b72f23f20
commit: 82ebfb0d633383ee00156e2b5bfa9ddf8c550b65 [11662/12034] NFSv4.1 query for fs_location attr on a new file system
config: i386-randconfig-a011 (https://download.01.org/0day-ci/archive/20220112/202201122054.45b1t1el-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
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/next/linux-next.git/commit/?id=82ebfb0d633383ee00156e2b5bfa9ddf8c550b65
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 82ebfb0d633383ee00156e2b5bfa9ddf8c550b65
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/nfs/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> fs/nfs/nfs4proc.c:4008:5: warning: no previous prototype for function 'nfs4_discover_trunking' [-Wmissing-prototypes]
   int nfs4_discover_trunking(struct nfs_server *server, struct nfs_fh *fhandle)
       ^
   fs/nfs/nfs4proc.c:4008:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int nfs4_discover_trunking(struct nfs_server *server, struct nfs_fh *fhandle)
   ^
   static 
   1 warning generated.


vim +/nfs4_discover_trunking +4008 fs/nfs/nfs4proc.c

  4007	
> 4008	int nfs4_discover_trunking(struct nfs_server *server, struct nfs_fh *fhandle)
  4009	{
  4010		struct nfs4_exception exception = {
  4011			.interruptible = true,
  4012		};
  4013		struct nfs_client *clp = server->nfs_client;
  4014		int err = 0;
  4015	
  4016		if (!nfs4_has_session(clp))
  4017			goto out;
  4018		do {
  4019			err = nfs4_handle_exception(server,
  4020					_nfs4_discover_trunking(server, fhandle),
  4021					&exception);
  4022		} while (exception.retry);
  4023	out:
  4024		return err;
  4025	}
  4026	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux