[nf-next:for-net-next 32/40] net//ipv6/netfilter.c:133:9: error: redefinition of 'nf_ip6_checksum'

[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-next
head:   680cba277b9779591e673100f6896e5baed7a180
commit: c5c654b5fccaca469e7d2eeebd5d0f2f1255e53b [32/40] netfilter: remove checksum 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 c5c654b5fccaca469e7d2eeebd5d0f2f1255e53b
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

>> 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:28:23: note: previous definition of 'nf_ip6_checksum' was here
    static inline __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook,
                          ^~~~~~~~~~~~~~~

vim +/nf_ip6_checksum +133 net//ipv6/netfilter.c

1841a4c7a Patrick McHardy 2007-12-05  132  
b51655b95 Al Viro         2006-11-14 @133  __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook,
422c346fa Patrick McHardy 2006-04-06  134  			     unsigned int dataoff, u_int8_t protocol)
422c346fa Patrick McHardy 2006-04-06  135  {
b71d1d426 Eric Dumazet    2011-04-22  136  	const struct ipv6hdr *ip6h = ipv6_hdr(skb);
b51655b95 Al Viro         2006-11-14  137  	__sum16 csum = 0;
422c346fa Patrick McHardy 2006-04-06  138  
422c346fa Patrick McHardy 2006-04-06  139  	switch (skb->ip_summed) {
84fa7933a Patrick McHardy 2006-08-29  140  	case CHECKSUM_COMPLETE:
6e23ae2a4 Patrick McHardy 2007-11-19  141  		if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN)
422c346fa Patrick McHardy 2006-04-06  142  			break;
422c346fa Patrick McHardy 2006-04-06  143  		if (!csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr,
422c346fa Patrick McHardy 2006-04-06  144  				     skb->len - dataoff, protocol,
422c346fa Patrick McHardy 2006-04-06  145  				     csum_sub(skb->csum,
422c346fa Patrick McHardy 2006-04-06  146  					      skb_checksum(skb, 0,
422c346fa Patrick McHardy 2006-04-06  147  							   dataoff, 0)))) {
422c346fa Patrick McHardy 2006-04-06  148  			skb->ip_summed = CHECKSUM_UNNECESSARY;
422c346fa Patrick McHardy 2006-04-06  149  			break;
422c346fa Patrick McHardy 2006-04-06  150  		}
422c346fa Patrick McHardy 2006-04-06  151  		/* fall through */
422c346fa Patrick McHardy 2006-04-06  152  	case CHECKSUM_NONE:
868c86bcb Al Viro         2006-11-14  153  		skb->csum = ~csum_unfold(
868c86bcb Al Viro         2006-11-14  154  				csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr,
422c346fa Patrick McHardy 2006-04-06  155  					     skb->len - dataoff,
422c346fa Patrick McHardy 2006-04-06  156  					     protocol,
422c346fa Patrick McHardy 2006-04-06  157  					     csum_sub(0,
422c346fa Patrick McHardy 2006-04-06  158  						      skb_checksum(skb, 0,
868c86bcb Al Viro         2006-11-14  159  								   dataoff, 0))));
422c346fa Patrick McHardy 2006-04-06  160  		csum = __skb_checksum_complete(skb);
422c346fa Patrick McHardy 2006-04-06  161  	}
422c346fa Patrick McHardy 2006-04-06  162  	return csum;
422c346fa Patrick McHardy 2006-04-06  163  }
422c346fa Patrick McHardy 2006-04-06  164  EXPORT_SYMBOL(nf_ip6_checksum);
422c346fa Patrick McHardy 2006-04-06  165  

:::::: The code at line 133 was first introduced by commit
:::::: b51655b958dfb1176bfcf99466231fdbef8751ff [NET]: Annotate __skb_checksum_complete() and friends.

:::::: TO: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxxxxxxxxx>

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