[linux-next:master 4201/6976] fs/nfsd/nfs4state.c:5499:44: sparse: sparse: Using plain integer as NULL pointer

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

 



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@xxxxxxxxx>


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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux