From: kernel test robot <lkp@intel.com>
To: Dai Ngo <dai.ngo@oracle.com>
Cc: llvm@lists.linux.dev, 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 [thread overview]
Message-ID: <202112111506.H3x5bYP2-lkp@intel.com> (raw)
In-Reply-To: <20211211010244.44599-3-dai.ngo@oracle.com>
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
parent reply other threads:[~2021-12-11 7:06 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20211211010244.44599-3-dai.ngo@oracle.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202112111506.H3x5bYP2-lkp@intel.com \
--to=lkp@intel.com \
--cc=dai.ngo@oracle.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox