[nf-next:master 1/1] net/netfilter/nfnetlink_acct.c:329: warning: unused variable 'refcount'

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

 



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: .config.gz
Description: application/gzip


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux