[Cluster-devel] [gfs2:for-next 29/30] fs/gfs2/super.c:1564:13: sparse: sparse: function 'free_local_statfs_inodes' with external linkage has definition

kernel test robot lkp at intel.com
Fri Oct 23 18:03:24 UTC 2020


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next
head:   bedb0f056faa94e953e7b3da5a77d25e0008364b
commit: 97fd734ba17e32463742c569137f54f713c27fe0 [29/30] gfs2: lookup local statfs inodes prior to journal recovery
config: i386-randconfig-s002-20201022 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-17-g2d3af347-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/?id=97fd734ba17e32463742c569137f54f713c27fe0
        git remote add gfs2 https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
        git fetch --no-tags gfs2 for-next
        git checkout 97fd734ba17e32463742c569137f54f713c27fe0
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>


"sparse warnings: (new ones prefixed by >>)"
>> fs/gfs2/super.c:1564:13: sparse: sparse: function 'free_local_statfs_inodes' with external linkage has definition
>> fs/gfs2/super.c:1579:21: sparse: sparse: function 'find_local_statfs_inode' with external linkage has definition

vim +/free_local_statfs_inodes +1564 fs/gfs2/super.c

  1563	
> 1564	extern void free_local_statfs_inodes(struct gfs2_sbd *sdp)
  1565	{
  1566		struct local_statfs_inode *lsi, *safe;
  1567	
  1568		/* Run through the statfs inodes list to iput and free memory */
  1569		list_for_each_entry_safe(lsi, safe, &sdp->sd_sc_inodes_list, si_list) {
  1570			if (lsi->si_jid == sdp->sd_jdesc->jd_jid)
  1571				sdp->sd_sc_inode = NULL; /* belongs to this node */
  1572			if (lsi->si_sc_inode)
  1573				iput(lsi->si_sc_inode);
  1574			list_del(&lsi->si_list);
  1575			kfree(lsi);
  1576		}
  1577	}
  1578	
> 1579	extern struct inode *find_local_statfs_inode(struct gfs2_sbd *sdp,
  1580						     unsigned int index)
  1581	{
  1582		struct local_statfs_inode *lsi;
  1583	
  1584		/* Return the local (per node) statfs inode in the
  1585		 * sdp->sd_sc_inodes_list corresponding to the 'index'. */
  1586		list_for_each_entry(lsi, &sdp->sd_sc_inodes_list, si_list) {
  1587			if (lsi->si_jid == index)
  1588				return lsi->si_sc_inode;
  1589		}
  1590		return NULL;
  1591	}
  1592	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 36243 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20201024/92c2b5b7/attachment.gz>


More information about the Cluster-devel mailing list