All of lore.kernel.org
 help / color / mirror / Atom feed
* [nf-next:master 1/1] net/netfilter/nfnetlink_acct.c:329: warning: unused variable 'refcount'
@ 2017-03-17 21:33 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-03-17 21:33 UTC (permalink / raw)
  To: Reshetova, Elena
  Cc: kbuild-all, netfilter-devel, coreteam, Pablo Neira Ayuso,
	Hans Liljestrand, Kees Cook, David Windsor

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-17 21:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-17 21:33 [nf-next:master 1/1] net/netfilter/nfnetlink_acct.c:329: warning: unused variable 'refcount' kbuild test robot

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.