tree:
https://github.com/multipath-tcp/mptcp_net-next.git export
head: 400a354b7e2db1f6ffdf7bf8faefdfa8c0d45aee
commit: 222f62c8bcf7a672e76939b8a02566eb5ded76ad [9/27] mptcp: sockopt: add SOL_IP
freebind & transparent options
config: hexagon-buildonly-randconfig-r006-20211112 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
63ef0e17e28827eae53133b3467bdac7d9729318)
reproduce (this is a W=1 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/multipath-tcp/mptcp_net-next/commit/222f62c8bcf7a672e7...
git remote add mptcp
https://github.com/multipath-tcp/mptcp_net-next.git
git fetch --no-tags mptcp export
git checkout 222f62c8bcf7a672e76939b8a02566eb5ded76ad
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> net/mptcp/sockopt.c:656:9: error: variable 'ret' is
uninitialized when used here [-Werror,-Wuninitialized]
return ret;
^~~
net/mptcp/sockopt.c:625:9: note: initialize the variable 'ret' to silence this
warning
int ret, err;
^
= 0
1 error generated.
vim +/ret +656 net/mptcp/sockopt.c
618
619 static int mptcp_setsockopt_sol_ip_set_transparent(struct mptcp_sock *msk, int
optname,
620 sockptr_t optval, unsigned int optlen)
621 {
622 struct sock *sk = (struct sock *)msk;
623 struct inet_sock *issk;
624 struct socket *ssock;
625 int ret, err;
626
627 err = ip_setsockopt(sk, SOL_IP, optname, optval, optlen);
628 if (err != 0)
629 return err;
630
631 lock_sock(sk);
632
633 ssock = __mptcp_nmpc_socket(msk);
634 if (!ssock) {
635 release_sock(sk);
636 return -EINVAL;
637 }
638
639 issk = inet_sk(ssock->sk);
640
641 switch (optname) {
642 case IP_FREEBIND:
643 issk->freebind = inet_sk(sk)->freebind;
644 break;
645 case IP_TRANSPARENT:
646 issk->transparent = inet_sk(sk)->transparent;
647 break;
648 default:
649 release_sock(sk);
650 WARN_ON_ONCE(1);
651 return -EOPNOTSUPP;
652 }
653
654 sockopt_seq_inc(msk);
655 release_sock(sk);
656 return ret;
657 }
658
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org