Re: [PATCH nf-next,v2] netfilter: ctnetlink: remove function inline declaration

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

 



Hi Pablo,

[auto build test results on v4.3-rc4 -- if it's inappropriate base, please ignore]

config: x86_64-randconfig-s1-10050704 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

>> net/netfilter/nf_conntrack_netlink.c:339:12: warning: 'ctnetlink_label_size' defined but not used [-Wunused-function]
    static int ctnetlink_label_size(const struct nf_conn *ct)
               ^
   net/netfilter/nf_conntrack_netlink.c:546:15: warning: 'ctnetlink_acct_size' defined but not used [-Wunused-function]
    static size_t ctnetlink_acct_size(const struct nf_conn *ct)
                  ^
   net/netfilter/nf_conntrack_netlink.c:572:15: warning: 'ctnetlink_timestamp_size' defined but not used [-Wunused-function]
    static size_t ctnetlink_timestamp_size(const struct nf_conn *ct)
                  ^

vim +/ctnetlink_label_size +339 net/netfilter/nf_conntrack_netlink.c

1cc63249 Eric Paris        2010-10-13  323  		goto nla_put_failure;
37fccd85 Pablo Neira Ayuso 2007-12-17  324  
cc1eb431 David S. Miller   2012-04-01  325  	if (nla_put_string(skb, CTA_SECCTX_NAME, secctx))
cc1eb431 David S. Miller   2012-04-01  326  		goto nla_put_failure;
1cc63249 Eric Paris        2010-10-13  327  	nla_nest_end(skb, nest_secctx);
1cc63249 Eric Paris        2010-10-13  328  
1cc63249 Eric Paris        2010-10-13  329  	ret = 0;
37fccd85 Pablo Neira Ayuso 2007-12-17  330  nla_put_failure:
1cc63249 Eric Paris        2010-10-13  331  	security_release_secctx(secctx, len);
1cc63249 Eric Paris        2010-10-13  332  	return ret;
37fccd85 Pablo Neira Ayuso 2007-12-17  333  }
37fccd85 Pablo Neira Ayuso 2007-12-17  334  #else
1cc63249 Eric Paris        2010-10-13  335  #define ctnetlink_dump_secctx(a, b) (0)
37fccd85 Pablo Neira Ayuso 2007-12-17  336  #endif
37fccd85 Pablo Neira Ayuso 2007-12-17  337  
0ceabd83 Florian Westphal  2013-01-11  338  #ifdef CONFIG_NF_CONNTRACK_LABELS
0ceabd83 Florian Westphal  2013-01-11 @339  static int ctnetlink_label_size(const struct nf_conn *ct)
0ceabd83 Florian Westphal  2013-01-11  340  {
0ceabd83 Florian Westphal  2013-01-11  341  	struct nf_conn_labels *labels = nf_ct_labels_find(ct);
0ceabd83 Florian Westphal  2013-01-11  342  
0ceabd83 Florian Westphal  2013-01-11  343  	if (!labels)
0ceabd83 Florian Westphal  2013-01-11  344  		return 0;
0ceabd83 Florian Westphal  2013-01-11  345  	return nla_total_size(labels->words * sizeof(long));
0ceabd83 Florian Westphal  2013-01-11  346  }
0ceabd83 Florian Westphal  2013-01-11  347  

:::::: The code at line 339 was first introduced by commit
:::::: 0ceabd83875b72a29f33db4ab703d6ba40ea4c58 netfilter: ctnetlink: deliver labels to userspace

:::::: TO: Florian Westphal <fw@xxxxxxxxx>
:::::: CC: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


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

  Powered by Linux