Re: [PATCH] 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: mips-jz4740 (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All warnings (new ones prefixed by >>):

>> net/netfilter/nf_conntrack_netlink.c:583:15: warning: 'ctnetlink_nlmsg_size' defined but not used [-Wunused-function]
    static size_t ctnetlink_nlmsg_size(const struct nf_conn *ct)
                  ^

vim +/ctnetlink_nlmsg_size +583 net/netfilter/nf_conntrack_netlink.c

   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))
   576			return 0;
   577		return nla_total_size(0) + 2 * nla_total_size(sizeof(uint64_t));
   578	#else
   579		return 0;
   580	#endif
   581	}
   582	
 > 583	static size_t ctnetlink_nlmsg_size(const struct nf_conn *ct)
   584	{
   585		return NLMSG_ALIGN(sizeof(struct nfgenmsg))
   586		       + 3 * nla_total_size(0) /* CTA_TUPLE_ORIG|REPL|MASTER */
   587		       + 3 * nla_total_size(0) /* CTA_TUPLE_IP */
   588		       + 3 * nla_total_size(0) /* CTA_TUPLE_PROTO */
   589		       + 3 * nla_total_size(sizeof(u_int8_t)) /* CTA_PROTO_NUM */
   590		       + nla_total_size(sizeof(u_int32_t)) /* CTA_ID */
   591		       + nla_total_size(sizeof(u_int32_t)) /* CTA_STATUS */

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