Content-Type: multipart/mixed; boundary="===============5914630448587424374==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH mptcp-next 17/21] mptcp: netlink: allow userspace-driven subflow establishment Date: Fri, 17 Dec 2021 13:46:27 +0800 Message-ID: <202112171344.Zn3aOifg-lkp@intel.com> In-Reply-To: <20211216222314.1244708-18-kishen.maloor@intel.com> List-Id: --===============5914630448587424374== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Kishen, I love your patch! Yet something to improve: [auto build test ERROR on f81a8b95bfe9cae8ff02739e3e263d9310422af7] url: https://github.com/0day-ci/linux/commits/Kishen-Maloor/mptcp-suppor= t-userspace-path-management/20211217-062636 base: f81a8b95bfe9cae8ff02739e3e263d9310422af7 config: arc-randconfig-r043-20211216 (https://download.01.org/0day-ci/archi= ve/20211217/202112171344.Zn3aOifg-lkp(a)intel.com/config) compiler: arc-elf-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/ece3dbcf3e16211dda7bdeb0f= 00b2450e776814d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Kishen-Maloor/mptcp-support-usersp= ace-path-management/20211217-062636 git checkout ece3dbcf3e16211dda7bdeb0f00b2450e776814d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darc SHELL=3D/bin/bash net/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/arc/include/asm/atomic.h:12, from include/linux/atomic.h:7, from include/net/net_namespace.h:8, from include/linux/inet.h:42, from net/mptcp/pm_netlink.c:9: net/mptcp/pm_netlink.c: In function 'mptcp_nl_find_ssk': >> net/mptcp/pm_netlink.c:2613:54: error: 'const struct mptcp_addr_info' ha= s no member named 'addr6'; did you mean 'addr'? 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if= _var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond= ) : __trace_if_value(cond)) | ^~~~ net/mptcp/pm_netlink.c:2613:25: note: in expansion of macro 'if' 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~ net/mptcp/pm_netlink.c:2614:55: error: 'const struct mptcp_addr_info' ha= s no member named 'addr6'; did you mean 'addr'? 2614 | !ipv6_addr_equal(&remote->addr6, &ss= k->sk_v6_daddr)) | ^~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if= _var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond= ) : __trace_if_value(cond)) | ^~~~ net/mptcp/pm_netlink.c:2613:25: note: in expansion of macro 'if' 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~ >> include/net/sock.h:388:45: error: 'struct sock_common' has no member nam= ed 'skc_v6_daddr'; did you mean 'skc_daddr'? 388 | #define sk_v6_daddr __sk_common.skc_v6_daddr | ^~~~~~~~~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if= _var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond= ) : __trace_if_value(cond)) | ^~~~ net/mptcp/pm_netlink.c:2613:25: note: in expansion of macro 'if' 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~ net/mptcp/pm_netlink.c:2614:68: note: in expansion of macro 'sk_v6_daddr' 2614 | !ipv6_addr_equal(&remote->addr6, &ss= k->sk_v6_daddr)) | = ^~~~~~~~~~~ >> net/mptcp/pm_netlink.c:2613:54: error: 'const struct mptcp_addr_info' ha= s no member named 'addr6'; did you mean 'addr'? 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~~~~ include/linux/compiler.h:58:61: note: in definition of macro '__trace_if= _var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond= ) : __trace_if_value(cond)) | ^~~~ net/mptcp/pm_netlink.c:2613:25: note: in expansion of macro 'if' 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~ net/mptcp/pm_netlink.c:2614:55: error: 'const struct mptcp_addr_info' ha= s no member named 'addr6'; did you mean 'addr'? 2614 | !ipv6_addr_equal(&remote->addr6, &ss= k->sk_v6_daddr)) | ^~~~~ include/linux/compiler.h:58:61: note: in definition of macro '__trace_if= _var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond= ) : __trace_if_value(cond)) | ^~~~ net/mptcp/pm_netlink.c:2613:25: note: in expansion of macro 'if' 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~ >> include/net/sock.h:388:45: error: 'struct sock_common' has no member nam= ed 'skc_v6_daddr'; did you mean 'skc_daddr'? 388 | #define sk_v6_daddr __sk_common.skc_v6_daddr | ^~~~~~~~~~~~ include/linux/compiler.h:58:61: note: in definition of macro '__trace_if= _var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond= ) : __trace_if_value(cond)) | ^~~~ net/mptcp/pm_netlink.c:2613:25: note: in expansion of macro 'if' 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~ net/mptcp/pm_netlink.c:2614:68: note: in expansion of macro 'sk_v6_daddr' 2614 | !ipv6_addr_equal(&remote->addr6, &ss= k->sk_v6_daddr)) | = ^~~~~~~~~~~ >> net/mptcp/pm_netlink.c:2613:54: error: 'const struct mptcp_addr_info' ha= s no member named 'addr6'; did you mean 'addr'? 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~~~~ include/linux/compiler.h:69:10: note: in definition of macro '__trace_if= _value' 69 | (cond) ? \ | ^~~~ include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_= var' 56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARG= S__) ) ) | ^~~~~~~~~~~~~~ net/mptcp/pm_netlink.c:2613:25: note: in expansion of macro 'if' 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~ net/mptcp/pm_netlink.c:2614:55: error: 'const struct mptcp_addr_info' ha= s no member named 'addr6'; did you mean 'addr'? 2614 | !ipv6_addr_equal(&remote->addr6, &ss= k->sk_v6_daddr)) | ^~~~~ include/linux/compiler.h:69:10: note: in definition of macro '__trace_if= _value' 69 | (cond) ? \ | ^~~~ include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_= var' 56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARG= S__) ) ) | ^~~~~~~~~~~~~~ net/mptcp/pm_netlink.c:2613:25: note: in expansion of macro 'if' 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~ >> include/net/sock.h:388:45: error: 'struct sock_common' has no member nam= ed 'skc_v6_daddr'; did you mean 'skc_daddr'? 388 | #define sk_v6_daddr __sk_common.skc_v6_daddr | ^~~~~~~~~~~~ include/linux/compiler.h:69:10: note: in definition of macro '__trace_if= _value' 69 | (cond) ? \ | ^~~~ include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_= var' 56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARG= S__) ) ) | ^~~~~~~~~~~~~~ net/mptcp/pm_netlink.c:2613:25: note: in expansion of macro 'if' 2613 | if (!ipv6_addr_equal(&local->addr6, &pin= fo->saddr) || | ^~ net/mptcp/pm_netlink.c:2614:68: note: in expansion of macro 'sk_v6_daddr' 2614 | !ipv6_addr_equal(&remote->addr6, &ss= k->sk_v6_daddr)) | = ^~~~~~~~~~~ vim +2613 net/mptcp/pm_netlink.c 2579 = 2580 static struct sock *mptcp_nl_find_ssk(struct mptcp_sock *msk, 2581 const struct mptcp_addr_info *local, 2582 const struct mptcp_addr_info *remote) 2583 { 2584 struct sock *sk =3D &msk->sk.icsk_inet.sk; 2585 struct mptcp_subflow_context *subflow; 2586 struct sock *found =3D NULL; 2587 = 2588 if (local->family !=3D remote->family) 2589 return NULL; 2590 = 2591 lock_sock(sk); 2592 = 2593 mptcp_for_each_subflow(msk, subflow) { 2594 const struct ipv6_pinfo *pinfo; 2595 const struct inet_sock *issk; 2596 struct sock *ssk; 2597 = 2598 ssk =3D mptcp_subflow_tcp_sock(subflow); 2599 = 2600 if (local->family !=3D ssk->sk_family) 2601 continue; 2602 = 2603 issk =3D inet_sk(ssk); 2604 = 2605 switch (ssk->sk_family) { 2606 case AF_INET: 2607 if (issk->inet_saddr !=3D local->addr.s_addr || 2608 issk->inet_daddr !=3D remote->addr.s_addr) 2609 continue; 2610 break; 2611 case AF_INET6: 2612 pinfo =3D inet6_sk(ssk); > 2613 if (!ipv6_addr_equal(&local->addr6, &pinfo->saddr) || 2614 !ipv6_addr_equal(&remote->addr6, &ssk->sk_v6_daddr)) 2615 continue; 2616 break; 2617 default: 2618 continue; 2619 } 2620 = 2621 if (issk->inet_sport =3D=3D local->port && 2622 issk->inet_dport =3D=3D remote->port) { 2623 found =3D ssk; 2624 goto found; 2625 } 2626 } 2627 = 2628 found: 2629 release_sock(sk); 2630 = 2631 return found; 2632 } 2633 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5914630448587424374==--