public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* Re: [PATCH RFC v7 2/2] nfsd: Initial implementation of NFSv4 Courteous Server
       [not found] <20211211010244.44599-3-dai.ngo@oracle.com>
@ 2021-12-11  7:06 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-11  7:06 UTC (permalink / raw)
  To: Dai Ngo; +Cc: llvm, kbuild-all

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-implementation-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/archive/20211211/202112111506.H3x5bYP2-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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://github.com/0day-ci/linux/commit/cba406450190222281d46b185d17895e76cf370b
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Dai-Ngo/nfsd-Initial-implementation-of-NFSv4-Courteous-Server/20211211-090428
        git checkout cba406450190222281d46b185d17895e76cf370b
        # 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/nfsd/

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/nfsd/nfs4state.c:6759:10: warning: expression which evaluates to zero treated as a null pointer constant of type 'void *' [-Wnon-literal-null-conversion]
                   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 NULL.
  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 = (struct file_lock *)cfl;
  6746			lo = (struct nfs4_lockowner *)fl->fl_owner;
  6747			clp = lo->lo_owner.so_client;
  6748			if (test_bit(NFSD4_COURTESY_CLIENT, &clp->cl_flags))
  6749				return clp;
  6750			return NULL;
  6751		}
  6752		clp = (struct nfs4_client *)cfl;
  6753	
  6754		nn = 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@lists.01.org

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

only message in thread, other threads:[~2021-12-11  7:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20211211010244.44599-3-dai.ngo@oracle.com>
2021-12-11  7:06 ` [PATCH RFC v7 2/2] nfsd: Initial implementation of NFSv4 Courteous Server 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