* [congwang:sockmap1 1/7] net/ipv4/tcp_bpf.c:563:31: error: 'sock_map_unhash' undeclared
@ 2021-02-16 2:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-16 2:59 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4002 bytes --]
tree: https://github.com/congwang/linux.git sockmap1
head: b2dfda210226f6718a7bab6ba27fca4958cf5fde
commit: ade71f1d50ccf7cbbd5fcd8bd741d9142c7dca77 [1/7] bpf: clean up sockmap related Kconfigs
config: arm-randconfig-r005-20210215 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.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/congwang/linux/commit/ade71f1d50ccf7cbbd5fcd8bd741d9142c7dca77
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang sockmap1
git checkout ade71f1d50ccf7cbbd5fcd8bd741d9142c7dca77
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
net/ipv4/tcp_bpf.c: In function 'tcp_bpf_rebuild_protos':
>> net/ipv4/tcp_bpf.c:563:31: error: 'sock_map_unhash' undeclared (first use in this function)
563 | prot[TCP_BPF_BASE].unhash = sock_map_unhash;
| ^~~~~~~~~~~~~~~
net/ipv4/tcp_bpf.c:563:31: note: each undeclared identifier is reported only once for each function it appears in
>> net/ipv4/tcp_bpf.c:564:30: error: 'sock_map_close' undeclared (first use in this function); did you mean 'sk_msg_clone'?
564 | prot[TCP_BPF_BASE].close = sock_map_close;
| ^~~~~~~~~~~~~~
| sk_msg_clone
--
net/ipv4/udp_bpf.c: In function 'udp_bpf_rebuild_protos':
>> net/ipv4/udp_bpf.c:21:17: error: 'sock_map_unhash' undeclared (first use in this function)
21 | prot->unhash = sock_map_unhash;
| ^~~~~~~~~~~~~~~
net/ipv4/udp_bpf.c:21:17: note: each undeclared identifier is reported only once for each function it appears in
>> net/ipv4/udp_bpf.c:22:17: error: 'sock_map_close' undeclared (first use in this function); did you mean 'sk_msg_clone'?
22 | prot->close = sock_map_close;
| ^~~~~~~~~~~~~~
| sk_msg_clone
vim +/sock_map_unhash +563 net/ipv4/tcp_bpf.c
604326b41a6fb9 Daniel Borkmann 2018-10-13 558
604326b41a6fb9 Daniel Borkmann 2018-10-13 559 static void tcp_bpf_rebuild_protos(struct proto prot[TCP_BPF_NUM_CFGS],
604326b41a6fb9 Daniel Borkmann 2018-10-13 560 struct proto *base)
604326b41a6fb9 Daniel Borkmann 2018-10-13 561 {
604326b41a6fb9 Daniel Borkmann 2018-10-13 562 prot[TCP_BPF_BASE] = *base;
f747632b608f90 Lorenz Bauer 2020-03-09 @563 prot[TCP_BPF_BASE].unhash = sock_map_unhash;
f747632b608f90 Lorenz Bauer 2020-03-09 @564 prot[TCP_BPF_BASE].close = sock_map_close;
604326b41a6fb9 Daniel Borkmann 2018-10-13 565 prot[TCP_BPF_BASE].recvmsg = tcp_bpf_recvmsg;
604326b41a6fb9 Daniel Borkmann 2018-10-13 566 prot[TCP_BPF_BASE].stream_memory_read = tcp_bpf_stream_read;
604326b41a6fb9 Daniel Borkmann 2018-10-13 567
604326b41a6fb9 Daniel Borkmann 2018-10-13 568 prot[TCP_BPF_TX] = prot[TCP_BPF_BASE];
604326b41a6fb9 Daniel Borkmann 2018-10-13 569 prot[TCP_BPF_TX].sendmsg = tcp_bpf_sendmsg;
604326b41a6fb9 Daniel Borkmann 2018-10-13 570 prot[TCP_BPF_TX].sendpage = tcp_bpf_sendpage;
604326b41a6fb9 Daniel Borkmann 2018-10-13 571 }
604326b41a6fb9 Daniel Borkmann 2018-10-13 572
:::::: The code at line 563 was first introduced by commit
:::::: f747632b608f90217a4e9ebb1deba8a37612aa32 bpf: sockmap: Move generic sockmap hooks from BPF TCP
:::::: TO: Lorenz Bauer <lmb@cloudflare.com>
:::::: CC: Daniel Borkmann <daniel@iogearbox.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26459 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-16 2:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 2:59 [congwang:sockmap1 1/7] net/ipv4/tcp_bpf.c:563:31: error: 'sock_map_unhash' undeclared kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.