[nf-next:for-net-next2 38/40] net/ipv6/netfilter.c:96:5: error: redefinition of 'nf_ip6_reroute'

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


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

  Powered by Linux