[nfs:testing 2/2] fs/nfs/nfs4proc.c:9598:51: error: incompatible pointer types passing 'struct nfs4_exception *' to parameter of type 'long *'

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

 



tree:   git://git.linux-nfs.org/projects/trondmy/linux-nfs.git testing
head:   df584fa3fe729c964d40a96383e2e91d6ca65c2b
commit: df584fa3fe729c964d40a96383e2e91d6ca65c2b [2/2] NFSv4: Fix second deadlock in nfs4_evict_inode()
config: mips-randconfig-r014-20210601 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project db26cd30b6dd65e88d786e97a1e453af5cd48966)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        git remote add nfs git://git.linux-nfs.org/projects/trondmy/linux-nfs.git
        git fetch --no-tags nfs testing
        git checkout df584fa3fe729c964d40a96383e2e91d6ca65c2b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

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

All errors (new ones prefixed by >>):

>> fs/nfs/nfs4proc.c:9598:51: error: incompatible pointer types passing 'struct nfs4_exception *' to parameter of type 'long *' [-Werror,-Wincompatible-pointer-types]
                   if (nfs4_async_handle_error(task, server, NULL, &exception) !=
                                                                   ^~~~~~~~~~
   fs/nfs/nfs4proc.c:644:36: note: passing argument to parameter 'timeout' here
                           struct nfs4_state *state, long *timeout)
                                                           ^
   1 error generated.


vim +9598 fs/nfs/nfs4proc.c

  9561	
  9562	static void nfs4_layoutreturn_done(struct rpc_task *task, void *calldata)
  9563	{
  9564		struct nfs4_layoutreturn *lrp = calldata;
  9565		struct nfs_server *server;
  9566		struct nfs4_exception exception = {
  9567			.task_is_privileged = lrp->args.seq_args.sa_privileged,
  9568		};
  9569	
  9570		dprintk("--> %s\n", __func__);
  9571	
  9572		if (!nfs41_sequence_process(task, &lrp->res.seq_res))
  9573			return;
  9574	
  9575		/*
  9576		 * Was there an RPC level error? Assume the call succeeded,
  9577		 * and that we need to release the layout
  9578		 */
  9579		if (task->tk_rpc_status != 0 && RPC_WAS_SENT(task)) {
  9580			lrp->res.lrs_present = 0;
  9581			return;
  9582		}
  9583	
  9584		server = NFS_SERVER(lrp->args.inode);
  9585		switch (task->tk_status) {
  9586		case -NFS4ERR_OLD_STATEID:
  9587			if (nfs4_layout_refresh_old_stateid(&lrp->args.stateid,
  9588						&lrp->args.range,
  9589						lrp->args.inode))
  9590				goto out_restart;
  9591			fallthrough;
  9592		default:
  9593			task->tk_status = 0;
  9594			fallthrough;
  9595		case 0:
  9596			break;
  9597		case -NFS4ERR_DELAY:
> 9598			if (nfs4_async_handle_error(task, server, NULL, &exception) !=
  9599			    -EAGAIN)
  9600				break;
  9601			goto out_restart;
  9602		}
  9603		dprintk("<-- %s\n", __func__);
  9604		return;
  9605	out_restart:
  9606		task->tk_status = 0;
  9607		nfs4_sequence_free_slot(&lrp->res.seq_res);
  9608		rpc_restart_call_prepare(task);
  9609	}
  9610	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux