tree:
https://github.com/congwang/linux.git sockmap1
head: b2dfda210226f6718a7bab6ba27fca4958cf5fde
commit: a2a4da967b9c6fb5571d8cc68866812503806f85 [6/7] fix
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/a2a4da967b9c6fb5571d8cc688668125...
git remote add congwang
https://github.com/congwang/linux.git
git fetch --no-tags congwang sockmap1
git checkout a2a4da967b9c6fb5571d8cc68866812503806f85
# 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(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/net/espintcp.h:6,
from net/ipv4/esp4.c:22:
include/linux/skmsg.h: In function 'skb_bpf_set_ingress':
> include/linux/skmsg.h:475:16: error: assignment of member
'sk_redir' in read-only object
475 | skb->sk_redir |=
BPF_F_INGRESS;
| ^~
include/linux/skmsg.h: In function 'skb_bpf_set_redir':
include/linux/skmsg.h:481:16: error: assignment of member 'sk_redir' in
read-only object
481 | skb->sk_redir = (unsigned long)sk_redir;
| ^
include/linux/skmsg.h:483:17: error: assignment of member 'sk_redir' in
read-only object
483 | skb->sk_redir |= BPF_F_INGRESS;
| ^~
--
In file included from net/ipv4/tcp_bpf.c:4:
include/linux/skmsg.h: In function 'skb_bpf_set_ingress':
> include/linux/skmsg.h:475:16: error: assignment of member
'sk_redir' in read-only object
475 | skb->sk_redir |=
BPF_F_INGRESS;
| ^~
include/linux/skmsg.h: In function 'skb_bpf_set_redir':
include/linux/skmsg.h:481:16: error: assignment of member 'sk_redir' in
read-only object
481 | skb->sk_redir = (unsigned long)sk_redir;
| ^
include/linux/skmsg.h:483:17: error: assignment of member 'sk_redir' in
read-only object
483 | skb->sk_redir |= BPF_F_INGRESS;
| ^~
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
--
In file included from net/ipv4/udp_bpf.c:4:
include/linux/skmsg.h: In function 'skb_bpf_set_ingress':
> include/linux/skmsg.h:475:16: error: assignment of member
'sk_redir' in read-only object
475 | skb->sk_redir |=
BPF_F_INGRESS;
| ^~
include/linux/skmsg.h: In function 'skb_bpf_set_redir':
include/linux/skmsg.h:481:16: error: assignment of member 'sk_redir' in
read-only object
481 | skb->sk_redir = (unsigned long)sk_redir;
| ^
include/linux/skmsg.h:483:17: error: assignment of member 'sk_redir' in
read-only object
483 | skb->sk_redir |= BPF_F_INGRESS;
| ^~
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 +/sk_redir +475 include/linux/skmsg.h
471
472 static inline
473 void skb_bpf_set_ingress(const struct sk_buff *skb)
474 {
475 skb->sk_redir |= BPF_F_INGRESS;
476 }
477
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org