From: kernel test robot <lkp@intel.com> To: Dai Ngo <dai.ngo@oracle.com> Cc: kbuild-all@lists.01.org, Linux Memory Management List <linux-mm@kvack.org>, "J. Bruce Fields" <bfields@redhat.com> Subject: [linux-next:master 4201/6976] fs/nfsd/nfs4state.c:5499:44: sparse: sparse: Using plain integer as NULL pointer Date: Fri, 4 Jun 2021 04:07:16 +0800 [thread overview] Message-ID: <202106040412.7fTUevXi-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 3947 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 3ebdbe7aa5dd825d609c3433c35c13b440a61c52 commit: f4e44b393389c77958f7c58bf4415032b4cda15b [4201/6976] NFSD: delay unmount source's export after inter-server copy completed. config: alpha-allmodconfig (attached as .config) compiler: alpha-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f4e44b393389c77958f7c58bf4415032b4cda15b 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 f4e44b393389c77958f7c58bf4415032b4cda15b # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=alpha If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> sparse warnings: (new ones prefixed by >>) >> fs/nfsd/nfs4state.c:5499:44: sparse: sparse: Using plain integer as NULL pointer fs/nfsd/nfs4state.c:5516:44: sparse: sparse: Using plain integer as NULL pointer fs/nfsd/nfs4state.c: note: in included file (through include/linux/dcache.h, include/linux/fs.h): include/linux/rculist.h:515:9: sparse: sparse: context imbalance in 'put_nfs4_file' - unexpected unlock fs/nfsd/nfs4state.c: note: in included file (through include/linux/wait.h, include/linux/wait_bit.h, include/linux/fs.h): include/linux/list.h:146:25: sparse: sparse: context imbalance in 'put_clnt_odstate' - unexpected unlock fs/nfsd/nfs4state.c:1097:9: sparse: sparse: context imbalance in 'nfs4_put_stid' - unexpected unlock -- >> fs/nfsd/nfs4proc.c:1181:44: sparse: sparse: Using plain integer as NULL pointer >> fs/nfsd/nfs4proc.c:1205:40: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted __be32 [usertype] @@ fs/nfsd/nfs4proc.c:1205:40: sparse: expected int fs/nfsd/nfs4proc.c:1205:40: sparse: got restricted __be32 [usertype] fs/nfsd/nfs4proc.c:1316:16: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [assigned] [usertype] status @@ got int @@ fs/nfsd/nfs4proc.c:1316:16: sparse: expected restricted __be32 [assigned] [usertype] status fs/nfsd/nfs4proc.c:1316:16: sparse: got int fs/nfsd/nfs4proc.c:1402:44: sparse: sparse: Using plain integer as NULL pointer fs/nfsd/nfs4proc.c:1538:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] status @@ got int @@ fs/nfsd/nfs4proc.c:1538:24: sparse: expected restricted __be32 [usertype] status fs/nfsd/nfs4proc.c:1538:24: sparse: got int vim +5499 fs/nfsd/nfs4state.c 5492 5493 /* 5494 * This is called when nfsd is being shutdown, after all inter_ssc 5495 * cleanup were done, to destroy the ssc delayed unmount list. 5496 */ 5497 static void nfsd4_ssc_shutdown_umount(struct nfsd_net *nn) 5498 { > 5499 struct nfsd4_ssc_umount_item *ni = 0; 5500 struct nfsd4_ssc_umount_item *tmp; 5501 5502 spin_lock(&nn->nfsd_ssc_lock); 5503 list_for_each_entry_safe(ni, tmp, &nn->nfsd_ssc_mount_list, nsui_list) { 5504 list_del(&ni->nsui_list); 5505 spin_unlock(&nn->nfsd_ssc_lock); 5506 mntput(ni->nsui_vfsmount); 5507 kfree(ni); 5508 spin_lock(&nn->nfsd_ssc_lock); 5509 } 5510 spin_unlock(&nn->nfsd_ssc_lock); 5511 } 5512 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [-- Attachment #2: .config.gz --] [-- Type: application/gzip, Size: 68160 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: [linux-next:master 4201/6976] fs/nfsd/nfs4state.c:5499:44: sparse: sparse: Using plain integer as NULL pointer Date: Fri, 04 Jun 2021 04:07:16 +0800 [thread overview] Message-ID: <202106040412.7fTUevXi-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 4018 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 3ebdbe7aa5dd825d609c3433c35c13b440a61c52 commit: f4e44b393389c77958f7c58bf4415032b4cda15b [4201/6976] NFSD: delay unmount source's export after inter-server copy completed. config: alpha-allmodconfig (attached as .config) compiler: alpha-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f4e44b393389c77958f7c58bf4415032b4cda15b 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 f4e44b393389c77958f7c58bf4415032b4cda15b # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=alpha If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> sparse warnings: (new ones prefixed by >>) >> fs/nfsd/nfs4state.c:5499:44: sparse: sparse: Using plain integer as NULL pointer fs/nfsd/nfs4state.c:5516:44: sparse: sparse: Using plain integer as NULL pointer fs/nfsd/nfs4state.c: note: in included file (through include/linux/dcache.h, include/linux/fs.h): include/linux/rculist.h:515:9: sparse: sparse: context imbalance in 'put_nfs4_file' - unexpected unlock fs/nfsd/nfs4state.c: note: in included file (through include/linux/wait.h, include/linux/wait_bit.h, include/linux/fs.h): include/linux/list.h:146:25: sparse: sparse: context imbalance in 'put_clnt_odstate' - unexpected unlock fs/nfsd/nfs4state.c:1097:9: sparse: sparse: context imbalance in 'nfs4_put_stid' - unexpected unlock -- >> fs/nfsd/nfs4proc.c:1181:44: sparse: sparse: Using plain integer as NULL pointer >> fs/nfsd/nfs4proc.c:1205:40: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted __be32 [usertype] @@ fs/nfsd/nfs4proc.c:1205:40: sparse: expected int fs/nfsd/nfs4proc.c:1205:40: sparse: got restricted __be32 [usertype] fs/nfsd/nfs4proc.c:1316:16: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [assigned] [usertype] status @@ got int @@ fs/nfsd/nfs4proc.c:1316:16: sparse: expected restricted __be32 [assigned] [usertype] status fs/nfsd/nfs4proc.c:1316:16: sparse: got int fs/nfsd/nfs4proc.c:1402:44: sparse: sparse: Using plain integer as NULL pointer fs/nfsd/nfs4proc.c:1538:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] status @@ got int @@ fs/nfsd/nfs4proc.c:1538:24: sparse: expected restricted __be32 [usertype] status fs/nfsd/nfs4proc.c:1538:24: sparse: got int vim +5499 fs/nfsd/nfs4state.c 5492 5493 /* 5494 * This is called when nfsd is being shutdown, after all inter_ssc 5495 * cleanup were done, to destroy the ssc delayed unmount list. 5496 */ 5497 static void nfsd4_ssc_shutdown_umount(struct nfsd_net *nn) 5498 { > 5499 struct nfsd4_ssc_umount_item *ni = 0; 5500 struct nfsd4_ssc_umount_item *tmp; 5501 5502 spin_lock(&nn->nfsd_ssc_lock); 5503 list_for_each_entry_safe(ni, tmp, &nn->nfsd_ssc_mount_list, nsui_list) { 5504 list_del(&ni->nsui_list); 5505 spin_unlock(&nn->nfsd_ssc_lock); 5506 mntput(ni->nsui_vfsmount); 5507 kfree(ni); 5508 spin_lock(&nn->nfsd_ssc_lock); 5509 } 5510 spin_unlock(&nn->nfsd_ssc_lock); 5511 } 5512 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org [-- Attachment #2: config.gz --] [-- Type: application/gzip, Size: 68160 bytes --]
next reply other threads:[~2021-06-03 20:08 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-03 20:07 kernel test robot [this message] 2021-06-03 20:07 ` [linux-next:master 4201/6976] fs/nfsd/nfs4state.c:5499:44: sparse: sparse: Using plain integer as NULL pointer kernel test robot
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=202106040412.7fTUevXi-lkp@intel.com \ --to=lkp@intel.com \ --cc=bfields@redhat.com \ --cc=dai.ngo@oracle.com \ --cc=kbuild-all@lists.01.org \ --cc=linux-mm@kvack.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.