cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cluster-devel.redhat.com
Subject: [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
Date: Sat, 24 Oct 2020 02:03:24 +0800	[thread overview]
Message-ID: <202010240222.SB2FvJpA-lkp@intel.com> (raw)

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

                 reply	other threads:[~2020-10-23 18:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202010240222.SB2FvJpA-lkp@intel.com \
    --to=lkp@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).