Content-Type: multipart/mixed; boundary="===============3981034844190336538==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH RFC v7 2/2] nfsd: Initial implementation of NFSv4 Courteous Server Date: Sat, 11 Dec 2021 15:06:29 +0800 Message-ID: <202112111506.H3x5bYP2-lkp@intel.com> In-Reply-To: <20211211010244.44599-3-dai.ngo@oracle.com> List-Id: --===============3981034844190336538== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Dai, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on linus/master] [also build test WARNING on v5.16-rc4] [cannot apply to cel-2.6/for-next jlayton/linux-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Dai-Ngo/nfsd-Initial-imple= mentation-of-NFSv4-Courteous-Server/20211211-090428 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = 9e65da135b39cabd82dc2f56b0db526b65a8d690 config: i386-randconfig-a011-20211210 (https://download.01.org/0day-ci/arch= ive/20211211/202112111506.H3x5bYP2-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1c= b1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/cba406450190222281d46b185= d17895e76cf370b git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Dai-Ngo/nfsd-Initial-implementatio= n-of-NFSv4-Courteous-Server/20211211-090428 git checkout cba406450190222281d46b185d17895e76cf370b # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash fs/nfsd/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> fs/nfsd/nfs4state.c:6759:10: warning: expression which evaluates to zero= treated as a null pointer constant of type 'void *' [-Wnon-literal-null-co= nversion] return false; ^~~~~ 1 warning generated. vim +6759 fs/nfsd/nfs4state.c 6730 = 6731 /* 6732 * If testonly is true then check if the client owns the lock is a 6733 * courtesy client. If it is then return that client else return NUL= L. 6734 * If testonly is false then destroy the specified courtesy client. 6735 */ 6736 static void * 6737 nfsd4_fl_expire_lock(void *cfl, bool testonly) 6738 { 6739 struct file_lock *fl; 6740 struct nfs4_lockowner *lo; 6741 struct nfs4_client *clp; 6742 struct nfsd_net *nn; 6743 = 6744 if (testonly) { 6745 fl =3D (struct file_lock *)cfl; 6746 lo =3D (struct nfs4_lockowner *)fl->fl_owner; 6747 clp =3D lo->lo_owner.so_client; 6748 if (test_bit(NFSD4_COURTESY_CLIENT, &clp->cl_flags)) 6749 return clp; 6750 return NULL; 6751 } 6752 clp =3D (struct nfs4_client *)cfl; 6753 = 6754 nn =3D net_generic(clp->net, nfsd_net_id); 6755 spin_lock(&nn->client_lock); 6756 if (!test_bit(NFSD4_COURTESY_CLIENT, &clp->cl_flags) || 6757 mark_client_expired_locked(clp)) { 6758 spin_unlock(&nn->client_lock); > 6759 return false; 6760 } 6761 spin_unlock(&nn->client_lock); 6762 expire_client(clp); 6763 return (void *)true; 6764 } 6765 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3981034844190336538==--