All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: "Reshetova, Elena" <elena.reshetova@intel.com>
Cc: kbuild-all@01.org, netfilter-devel@vger.kernel.org,
	coreteam@netfilter.org, Pablo Neira Ayuso <pablo@netfilter.org>,
	Hans Liljestrand <ishkamiel@gmail.com>,
	Kees Cook <keescook@chromium.org>,
	David Windsor <dwindsor@gmail.com>
Subject: [nf-next:master 1/1] net/netfilter/nfnetlink_acct.c:329: warning: unused variable 'refcount'
Date: Sat, 18 Mar 2017 05:33:13 +0800	[thread overview]
Message-ID: <201703180509.Jho3BeVk%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1663 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git master
head:   b54ab92b84b6161f91b1ad9160199422b3699009
commit: b54ab92b84b6161f91b1ad9160199422b3699009 [1/1] netfilter: refcounter conversions
config: x86_64-randconfig-s0-03180414 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        git checkout b54ab92b84b6161f91b1ad9160199422b3699009
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   net/netfilter/nfnetlink_acct.c: In function 'nfnl_acct_try_del':
>> net/netfilter/nfnetlink_acct.c:329: warning: unused variable 'refcount'

vim +/refcount +329 net/netfilter/nfnetlink_acct.c

   313			}
   314			ret = netlink_unicast(nfnl, skb2, NETLINK_CB(skb).portid,
   315						MSG_DONTWAIT);
   316			if (ret > 0)
   317				ret = 0;
   318	
   319			/* this avoids a loop in nfnetlink. */
   320			return ret == -EAGAIN ? -ENOBUFS : ret;
   321		}
   322		return ret;
   323	}
   324	
   325	/* try to delete object, fail if it is still in use. */
   326	static int nfnl_acct_try_del(struct nf_acct *cur)
   327	{
   328		int ret = 0;
 > 329		unsigned int refcount;
   330	
   331		/* We want to avoid races with nfnl_acct_put. So only when the current
   332		 * refcnt is 1, we decrease it to 0.
   333		 */
   334		if (refcount_dec_if_one(&cur->refcnt)) {
   335			/* We are protected by nfnl mutex. */
   336			list_del_rcu(&cur->head);
   337			kfree_rcu(cur, rcu_head);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28674 bytes --]

                 reply	other threads:[~2017-03-17 21:36 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=201703180509.Jho3BeVk%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=coreteam@netfilter.org \
    --cc=dwindsor@gmail.com \
    --cc=elena.reshetova@intel.com \
    --cc=ishkamiel@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=keescook@chromium.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.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: link
Be 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.