tree: https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git inet-rework head: 749825bc60f7224225ced1dbed77d3cc2b0bd72f commit: a36b30653769d1e20ff0df41533a2766453ced1a [1/6] inet: collapse ipv4/v6 rcv_saddr_equal functions into one config: cris-etrax-100lx_v2_defconfig (attached as .config) compiler: cris-linux-gcc (GCC) 6.2.0 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 git checkout a36b30653769d1e20ff0df41533a2766453ced1a # save the attached .config to linux build tree make.cross ARCH=cris All error/warnings (new ones prefixed by >>): In file included from include/net/inet_sock.h:27:0, from include/net/inet_connection_sock.h:23, from net/ipv4/inet_connection_sock.c:19: net/ipv4/inet_connection_sock.c: In function 'ipv6_rcv_saddr_equal': >> include/net/sock.h:339:36: error: 'const struct sock_common' has no member named 'skc_v6_rcv_saddr'; did you mean 'skc_rcv_saddr'? #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr ^ >> net/ipv4/inet_connection_sock.c:45:38: note: in expansion of macro 'sk_v6_rcv_saddr' int addr_type = ipv6_addr_type(&sk->sk_v6_rcv_saddr); ^~~~~~~~~~~~~~~ >> include/net/sock.h:339:36: error: 'const struct sock_common' has no member named 'skc_v6_rcv_saddr'; did you mean 'skc_rcv_saddr'? #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr ^ net/ipv4/inet_connection_sock.c:71:27: note: in expansion of macro 'sk_v6_rcv_saddr' ipv6_addr_equal(&sk->sk_v6_rcv_saddr, sk2_rcv_saddr6)) ^~~~~~~~~~~~~~~ vim +/sk_v6_rcv_saddr +45 net/ipv4/inet_connection_sock.c 13 * 2 of the License, or(at your option) any later version. 14 */ 15 16 #include <linux/module.h> 17 #include <linux/jhash.h> 18 > 19 #include <net/inet_connection_sock.h> 20 #include <net/inet_hashtables.h> 21 #include <net/inet_timewait_sock.h> 22 #include <net/ip.h> 23 #include <net/route.h> 24 #include <net/tcp_states.h> 25 #include <net/xfrm.h> 26 #include <net/tcp.h> 27 #include <net/sock_reuseport.h> 28 29 #ifdef INET_CSK_DEBUG 30 const char inet_csk_timer_bug_msg[] = "inet_csk BUG: unknown timer value\n"; 31 EXPORT_SYMBOL(inet_csk_timer_bug_msg); 32 #endif 33 34 /* match_wildcard == true: IPV6_ADDR_ANY equals to any IPv6 addresses if IPv6 35 * only, and any IPv4 addresses if not IPv6 only 36 * match_wildcard == false: addresses must be exactly the same, i.e. 37 * IPV6_ADDR_ANY only equals to IPV6_ADDR_ANY, 38 * and 0.0.0.0 equals to 0.0.0.0 only 39 */ 40 static int ipv6_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2, 41 bool match_wildcard) 42 { 43 const struct in6_addr *sk2_rcv_saddr6 = inet6_rcv_saddr(sk2); 44 int sk2_ipv6only = inet_v6_ipv6only(sk2); > 45 int addr_type = ipv6_addr_type(&sk->sk_v6_rcv_saddr); 46 int addr_type2 = sk2_rcv_saddr6 ? ipv6_addr_type(sk2_rcv_saddr6) : IPV6_ADDR_MAPPED; 47 48 /* if both are mapped, treat as IPv4 */ --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
