[linux-next:master 1053/1198] fs/dlm/lowcomms.c:621:26: error: no member named 'skc_v6_daddr' in 'struct sock_common'; did you mean 'skc_daddr'?
From: kernel test robot <hidden>
Date: 2021-11-17 02:41:03
Also in:
llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: a2f3bb245883ba791e46be1f8415186dae346458 commit: 4c3d90570bcc2b338f70f61f01110268e281ca3c [1053/1198] fs: dlm: don't call kernel_getpeername() in error_report() config: arm-randconfig-c002-20211115 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=4c3d90570bcc2b338f70f61f01110268e281ca3c git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 4c3d90570bcc2b338f70f61f01110268e281ca3c # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash fs/dlm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All errors (new ones prefixed by >>):
quoted
fs/dlm/lowcomms.c:621:26: error: no member named 'skc_v6_daddr' in 'struct sock_common'; did you mean 'skc_daddr'?
con->nodeid, &sk->sk_v6_daddr,
^
include/net/sock.h:170:11: note: 'skc_daddr' declared here
__be32 skc_daddr;
^
1 error generated.
vim +621 fs/dlm/lowcomms.c
593
594 static void lowcomms_error_report(struct sock *sk)
595 {
596 struct connection *con;
597 void (*orig_report)(struct sock *) = NULL;
598 struct inet_sock *inet;
599
600 read_lock_bh(&sk->sk_callback_lock);
601 con = sock2con(sk);
602 if (con == NULL)
603 goto out;
604
605 orig_report = listen_sock.sk_error_report;
606
607 inet = inet_sk(sk);
608 switch (sk->sk_family) {
609 case AF_INET:
610 printk_ratelimited(KERN_ERR "dlm: node %d: socket error "
611 "sending to node %d at %pI4, dport %d, "
612 "sk_err=%d/%d\n", dlm_our_nodeid(),
613 con->nodeid, &inet->inet_daddr,
614 ntohs(inet->inet_dport), sk->sk_err,
615 sk->sk_err_soft);
616 break;
617 case AF_INET6:
618 printk_ratelimited(KERN_ERR "dlm: node %d: socket error "
619 "sending to node %d at %pI6c, "
620 "dport %d, sk_err=%d/%d\n", dlm_our_nodeid(),
> 621 con->nodeid, &sk->sk_v6_daddr,
622 ntohs(inet->inet_dport), sk->sk_err,
623 sk->sk_err_soft);
624 break;
625 default:
626 printk_ratelimited(KERN_ERR "dlm: node %d: socket error "
627 "invalid socket family %d set, "
628 "sk_err=%d/%d\n", dlm_our_nodeid(),
629 sk->sk_family, sk->sk_err, sk->sk_err_soft);
630 goto out;
631 }
632
633 /* below sendcon only handling */
634 if (test_bit(CF_IS_OTHERCON, &con->flags))
635 con = con->sendcon;
636
637 switch (sk->sk_err) {
638 case ECONNREFUSED:
639 set_bit(CF_DELAY_CONNECT, &con->flags);
640 break;
641 default:
642 break;
643 }
644
645 if (!test_and_set_bit(CF_RECONNECT, &con->flags))
646 queue_work(send_workqueue, &con->swork);
647
648 out:
649 read_unlock_bh(&sk->sk_callback_lock);
650 if (orig_report)
651 orig_report(sk);
652 }
653
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 39123 bytes