netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: kbuild-all@01.org, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nf-next,v2] netfilter: ctnetlink: remove function inline declaration
Date: Mon, 5 Oct 2015 03:18:04 +0800	[thread overview]
Message-ID: <201510050340.pagDNZBc%fengguang.wu@intel.com> (raw)
In-Reply-To: <1443986000-18068-1-git-send-email-pablo@netfilter.org>

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

Hi Pablo,

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

config: i386-defconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

>> net/netfilter/nf_conntrack_netlink.c:529:15: warning: 'ctnetlink_proto_size' defined but not used [-Wunused-function]
    static size_t ctnetlink_proto_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:556:12: warning: 'ctnetlink_secctx_size' defined but not used [-Wunused-function]
    static int ctnetlink_secctx_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_proto_size +529 net/netfilter/nf_conntrack_netlink.c

   523	nlmsg_failure:
   524	nla_put_failure:
   525		nlmsg_cancel(skb, nlh);
   526		return -1;
   527	}
   528	
 > 529	static size_t ctnetlink_proto_size(const struct nf_conn *ct)
   530	{
   531		struct nf_conntrack_l3proto *l3proto;
   532		struct nf_conntrack_l4proto *l4proto;
   533		size_t len = 0;
   534	
   535		rcu_read_lock();
   536		l3proto = __nf_ct_l3proto_find(nf_ct_l3num(ct));
   537		len += l3proto->nla_size;
   538	
   539		l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct));
   540		len += l4proto->nla_size;
   541		rcu_read_unlock();
   542	
   543		return len;
   544	}
   545	
 > 546	static size_t ctnetlink_acct_size(const struct nf_conn *ct)
   547	{
   548		if (!nf_ct_ext_exist(ct, NF_CT_EXT_ACCT))
   549			return 0;
   550		return 2 * nla_total_size(0) /* CTA_COUNTERS_ORIG|REPL */
   551		       + 2 * nla_total_size(sizeof(uint64_t)) /* CTA_COUNTERS_PACKETS */
   552		       + 2 * nla_total_size(sizeof(uint64_t)) /* CTA_COUNTERS_BYTES */
   553		       ;
   554	}
   555	
 > 556	static int ctnetlink_secctx_size(const struct nf_conn *ct)
   557	{
   558	#ifdef CONFIG_NF_CONNTRACK_SECMARK
   559		int len, ret;
   560	
   561		ret = security_secid_to_secctx(ct->secmark, NULL, &len);
   562		if (ret)
   563			return 0;
   564	
   565		return nla_total_size(0) /* CTA_SECCTX */
   566		       + nla_total_size(sizeof(char) * len); /* CTA_SECCTX_NAME */
   567	#else
   568		return 0;
   569	#endif
   570	}
   571	
 > 572	static size_t ctnetlink_timestamp_size(const struct nf_conn *ct)
   573	{
   574	#ifdef CONFIG_NF_CONNTRACK_TIMESTAMP
   575		if (!nf_ct_ext_exist(ct, NF_CT_EXT_TSTAMP))

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 23761 bytes --]

  reply	other threads:[~2015-10-04 19:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-04 19:13 [PATCH nf-next,v2] netfilter: ctnetlink: remove function inline declaration Pablo Neira Ayuso
2015-10-04 19:18 ` kbuild test robot [this message]
2015-10-04 19:39   ` Pablo Neira Ayuso
2015-10-04 23:38 ` kbuild test robot

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=201510050340.pagDNZBc%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.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 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).