Re: [PATCH net-next] ipv6: sr: fix IPv6 initialization failure without lwtunnels

2016-11-10 Thread kbuild test robot
Hi David,

[auto build test ERROR on net-next/master]

url:
https://github.com/0day-ci/linux/commits/David-Lebrun/ipv6-sr-fix-IPv6-initialization-failure-without-lwtunnels/20161110-175753
config: i386-randconfig-s0-201645 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from net/ipv6/seg6_iptunnel.c:24:0:
   include/net/seg6.h: In function 'seg6_pernet':
>> include/net/seg6.h:52:12: error: 'struct net' has no member named 'ipv6'; 
>> did you mean 'ipv4'?
 return net->ipv6.seg6_data;
   ^~
   include/net/seg6.h:53:1: warning: control reaches end of non-void function 
[-Wreturn-type]
}
^

vim +52 include/net/seg6.h

1ababeba David Lebrun 2016-11-08  36to[0], to[1], to[2], to[3],
1ababeba David Lebrun 2016-11-08  37};
1ababeba David Lebrun 2016-11-08  38  
1ababeba David Lebrun 2016-11-08  39skb->csum = ~csum_partial((char *)diff, 
sizeof(diff), ~skb->csum);
1ababeba David Lebrun 2016-11-08  40  }
1ababeba David Lebrun 2016-11-08  41  
915d7e5e David Lebrun 2016-11-08  42  struct seg6_pernet_data {
915d7e5e David Lebrun 2016-11-08  43struct mutex lock;
915d7e5e David Lebrun 2016-11-08  44struct in6_addr __rcu *tun_src;
bf355b8d David Lebrun 2016-11-08  45  #ifdef CONFIG_IPV6_SEG6_HMAC
bf355b8d David Lebrun 2016-11-08  46struct rhashtable hmac_infos;
bf355b8d David Lebrun 2016-11-08  47  #endif
915d7e5e David Lebrun 2016-11-08  48  };
915d7e5e David Lebrun 2016-11-08  49  
915d7e5e David Lebrun 2016-11-08  50  static inline struct seg6_pernet_data 
*seg6_pernet(struct net *net)
915d7e5e David Lebrun 2016-11-08  51  {
915d7e5e David Lebrun 2016-11-08 @52return net->ipv6.seg6_data;
915d7e5e David Lebrun 2016-11-08  53  }
915d7e5e David Lebrun 2016-11-08  54  
915d7e5e David Lebrun 2016-11-08  55  extern int seg6_init(void);
915d7e5e David Lebrun 2016-11-08  56  extern void seg6_exit(void);
6c8702c6 David Lebrun 2016-11-08  57  extern int seg6_iptunnel_init(void);
6c8702c6 David Lebrun 2016-11-08  58  extern void seg6_iptunnel_exit(void);
6c8702c6 David Lebrun 2016-11-08  59  
6c8702c6 David Lebrun 2016-11-08  60  extern bool seg6_validate_srh(struct 
ipv6_sr_hdr *srh, int len);

:: The code at line 52 was first introduced by commit
:: 915d7e5e5930b4f01d0971d93b9b25ed17d221aa ipv6: sr: add code base for 
control plane support of SR-IPv6

:: TO: David Lebrun 
:: CC: David S. Miller 

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


.config.gz
Description: application/gzip


Re: [PATCH net-next] ipv6: sr: fix IPv6 initialization failure without lwtunnels

2016-11-10 Thread kbuild test robot
Hi David,

[auto build test ERROR on net-next/master]

url:
https://github.com/0day-ci/linux/commits/David-Lebrun/ipv6-sr-fix-IPv6-initialization-failure-without-lwtunnels/20161110-175753
config: i386-randconfig-s1-201645 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from net/ipv6/seg6_iptunnel.c:24:0:
   include/net/seg6.h: In function 'seg6_pernet':
   include/net/seg6.h:52:12: error: 'struct net' has no member named 'ipv6'; 
did you mean 'ipv4'?
 return net->ipv6.seg6_data;
   ^~
   net/ipv6/seg6_iptunnel.c: In function 'seg6_output':
>> net/ipv6/seg6_iptunnel.c:289:3: error: implicit declaration of function 
>> 'dst_cache_set_ip6' [-Werror=implicit-function-declaration]
  dst_cache_set_ip6(>cache, dst, );
  ^
   In file included from net/ipv6/seg6_iptunnel.c:24:0:
   include/net/seg6.h: In function 'seg6_pernet':
   include/net/seg6.h:53:1: warning: control reaches end of non-void function 
[-Wreturn-type]
}
^
   cc1: some warnings being treated as errors

vim +/dst_cache_set_ip6 +289 net/ipv6/seg6_iptunnel.c

6c8702c6 David Lebrun 2016-11-08  273   struct flowi6 fl6;
6c8702c6 David Lebrun 2016-11-08  274  
6c8702c6 David Lebrun 2016-11-08  275   fl6.daddr = hdr->daddr;
6c8702c6 David Lebrun 2016-11-08  276   fl6.saddr = hdr->saddr;
6c8702c6 David Lebrun 2016-11-08  277   fl6.flowlabel = 
ip6_flowinfo(hdr);
6c8702c6 David Lebrun 2016-11-08  278   fl6.flowi6_mark = skb->mark;
6c8702c6 David Lebrun 2016-11-08  279   fl6.flowi6_proto = hdr->nexthdr;
6c8702c6 David Lebrun 2016-11-08  280  
6c8702c6 David Lebrun 2016-11-08  281   dst = ip6_route_output(net, 
NULL, );
6c8702c6 David Lebrun 2016-11-08  282   if (dst->error) {
6c8702c6 David Lebrun 2016-11-08  283   err = dst->error;
6c8702c6 David Lebrun 2016-11-08  284   dst_release(dst);
6c8702c6 David Lebrun 2016-11-08  285   goto drop;
6c8702c6 David Lebrun 2016-11-08  286   }
6c8702c6 David Lebrun 2016-11-08  287  
6c8702c6 David Lebrun 2016-11-08  288  #ifdef CONFIG_DST_CACHE
6c8702c6 David Lebrun 2016-11-08 @289   dst_cache_set_ip6(>cache, 
dst, );
6c8702c6 David Lebrun 2016-11-08  290  #endif
6c8702c6 David Lebrun 2016-11-08  291   }
6c8702c6 David Lebrun 2016-11-08  292  
6c8702c6 David Lebrun 2016-11-08  293   skb_dst_drop(skb);
6c8702c6 David Lebrun 2016-11-08  294   skb_dst_set(skb, dst);
6c8702c6 David Lebrun 2016-11-08  295  
6c8702c6 David Lebrun 2016-11-08  296   return dst_output(net, sk, skb);
6c8702c6 David Lebrun 2016-11-08  297  drop:

:: The code at line 289 was first introduced by commit
:: 6c8702c60b88651072460f3f4026c7dfe2521d12 ipv6: sr: add support for SRH 
encapsulation and injection with lwtunnels

:: TO: David Lebrun 
:: CC: David S. Miller 

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


.config.gz
Description: application/gzip