netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: kbuild-all@01.org, netfilter-devel@vger.kernel.org,
	coreteam@netfilter.org
Subject: [nf-next:for-net-next2 38/40] net/ipv6/netfilter.c:96:5: error: redefinition of 'nf_ip6_reroute'
Date: Wed, 20 Dec 2017 00:04:35 +0800	[thread overview]
Message-ID: <201712200033.EmagdB94%fengguang.wu@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git for-net-next2
head:   7c3f8641178fb63c1e970a23e3743e89fc92be81
commit: 56cd0e50caf4a1cb0fc743c53f3f7b3ad7a5f717 [38/40] netfilter: remove reroute indirection in struct nf_afinfo
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 56cd0e50caf4a1cb0fc743c53f3f7b3ad7a5f717
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   net/ipv6/netfilter.c:82:6: error: redefinition of 'nf_ip6_saveroute'
    void nf_ip6_saveroute(const struct sk_buff *skb, struct nf_queue_entry *entry)
         ^~~~~~~~~~~~~~~~
   In file included from net/ipv6/netfilter.c:11:0:
   include/linux/netfilter_ipv6.h:60:20: note: previous definition of 'nf_ip6_saveroute' was here
    static inline void nf_ip6_saveroute(const struct sk_buff *skb,
                       ^~~~~~~~~~~~~~~~
>> net/ipv6/netfilter.c:96:5: error: redefinition of 'nf_ip6_reroute'
    int nf_ip6_reroute(struct sk_buff *skb, const struct nf_queue_entry *entry)
        ^~~~~~~~~~~~~~
   In file included from net/ipv6/netfilter.c:11:0:
   include/linux/netfilter_ipv6.h:55:19: note: previous definition of 'nf_ip6_reroute' was here
    static inline int nf_ip6_reroute(struct sk_buff *skb,
                      ^~~~~~~~~~~~~~
   net/ipv6/netfilter.c:110:5: error: redefinition of 'nf_ip6_route'
    int nf_ip6_route(struct net *net, struct dst_entry **dst, struct flowi *fl,
        ^~~~~~~~~~~~
   In file included from net/ipv6/netfilter.c:11:0:
   include/linux/netfilter_ipv6.h:50:19: note: previous definition of 'nf_ip6_route' was here
    static inline int nf_ip6_route(struct net *net, struct dst_entry **dst,
                      ^~~~~~~~~~~~
   net/ipv6/netfilter.c:133:9: error: redefinition of 'nf_ip6_checksum'
    __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook,
            ^~~~~~~~~~~~~~~
   In file included from net/ipv6/netfilter.c:11:0:
   include/linux/netfilter_ipv6.h:37:23: note: previous definition of 'nf_ip6_checksum' was here
    static inline __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook,
                          ^~~~~~~~~~~~~~~
   net/ipv6/netfilter.c:166:9: error: redefinition of 'nf_ip6_checksum_partial'
    __sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook,
            ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from net/ipv6/netfilter.c:11:0:
   include/linux/netfilter_ipv6.h:42:23: note: previous definition of 'nf_ip6_checksum_partial' was here
    static inline __sum16 nf_ip6_checksum_partial(struct sk_buff *skb,
                          ^~~~~~~~~~~~~~~~~~~~~~~

vim +/nf_ip6_reroute +96 net/ipv6/netfilter.c

    81	
  > 82	void nf_ip6_saveroute(const struct sk_buff *skb, struct nf_queue_entry *entry)
    83	{
    84		struct ip6_rt_info *rt_info = nf_queue_entry_reroute(entry);
    85	
    86		if (entry->state.hook == NF_INET_LOCAL_OUT) {
    87			const struct ipv6hdr *iph = ipv6_hdr(skb);
    88	
    89			rt_info->daddr = iph->daddr;
    90			rt_info->saddr = iph->saddr;
    91			rt_info->mark = skb->mark;
    92		}
    93	}
    94	EXPORT_SYMBOL_GPL(nf_ip6_saveroute);
    95	
  > 96	int nf_ip6_reroute(struct sk_buff *skb, const struct nf_queue_entry *entry)
    97	{
    98		struct ip6_rt_info *rt_info = nf_queue_entry_reroute(entry);
    99	
   100		if (entry->state.hook == NF_INET_LOCAL_OUT) {
   101			const struct ipv6hdr *iph = ipv6_hdr(skb);
   102			if (!ipv6_addr_equal(&iph->daddr, &rt_info->daddr) ||
   103			    !ipv6_addr_equal(&iph->saddr, &rt_info->saddr) ||
   104			    skb->mark != rt_info->mark)
   105				return ip6_route_me_harder(entry->state.net, skb);
   106		}
   107		return 0;
   108	}
   109	

---
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: 51627 bytes --]

                 reply	other threads:[~2017-12-19 16:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201712200033.EmagdB94%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=coreteam@netfilter.org \
    --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).