[ammarfaizi2-block:dhowells/linux-fs/rxrpc-ringless 19/24] net/rxrpc/output.c:26: undefined reference to `udpv6_sendmsg'

From: kernel test robot
Date: Fri Apr 29 2022 - 16:03:29 EST


tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/rxrpc-ringless
head: 14d1ef9d0da567ca88d30b4c79706079cc997e9f
commit: fdcaaadfeb4a8eec32fe3855be0e5e3c3add5592 [19/24] rxrpc: Call udp_sendmsg() directly
config: arc-randconfig-r043-20220428 (https://download.01.org/0day-ci/archive/20220430/202204300328.igesKwMU-lkp@xxxxxxxxx/config)
compiler: arceb-elf-gcc (GCC) 11.3.0
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/ammarfaizi2/linux-block/commit/fdcaaadfeb4a8eec32fe3855be0e5e3c3add5592
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/rxrpc-ringless
git checkout fdcaaadfeb4a8eec32fe3855be0e5e3c3add5592
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

arceb-elf-ld: net/rxrpc/output.o: in function `do_udp_sendmsg':
>> net/rxrpc/output.c:26: undefined reference to `udpv6_sendmsg'
>> arceb-elf-ld: net/rxrpc/output.c:26: undefined reference to `udpv6_sendmsg'
>> arceb-elf-ld: net/rxrpc/output.c:26: undefined reference to `udpv6_sendmsg'
>> arceb-elf-ld: net/rxrpc/output.c:26: undefined reference to `udpv6_sendmsg'
>> arceb-elf-ld: net/rxrpc/output.c:26: undefined reference to `udpv6_sendmsg'
arceb-elf-ld: net/rxrpc/output.o:net/rxrpc/output.c:26: more undefined references to `udpv6_sendmsg' follow
pahole: .tmp_vmlinux.btf: No such file or directory
.btf.vmlinux.bin.o: file not recognized: file format not recognized


vim +26 net/rxrpc/output.c

20
21 static ssize_t do_udp_sendmsg(struct socket *sk, struct msghdr *msg, size_t len)
22 {
23 struct sockaddr *sa = msg->msg_name;
24
25 if (sa->sa_family == AF_INET6)
> 26 return udpv6_sendmsg(sk->sk, msg, len);
27 return udp_sendmsg(sk->sk, msg, len);
28 }
29

--
0-DAY CI Kernel Test Service
https://01.org/lkp