tree:
https://github.com/congwang/linux.git sockmap1
head: b2dfda210226f6718a7bab6ba27fca4958cf5fde
commit: a2a4da967b9c6fb5571d8cc68866812503806f85 [6/7] fix
config: x86_64-randconfig-r033-20210215 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
c9439ca36342fb6013187d0a69aef92736951476)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
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=clang make.cross ARCH=x86_64
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 net/core/filter.c:37:
> include/linux/skmsg.h:475:16: error: cannot assign to variable
'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:473:48: note: variable 'skb' declared const here
void skb_bpf_set_ingress(const struct sk_buff *skb)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:481:16: error: cannot assign to variable 'skb' with
const-qualified type 'const struct sk_buff *'
skb->sk_redir = (unsigned long)sk_redir;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:483:17: error: cannot assign to variable 'skb' with
const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
3 errors generated.
--
In file included from net/core/skmsg.c:4:
> include/linux/skmsg.h:475:16: error: cannot assign to variable
'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:473:48: note: variable 'skb' declared const here
void skb_bpf_set_ingress(const struct sk_buff *skb)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:481:16: error: cannot assign to variable 'skb' with
const-qualified type 'const struct sk_buff *'
skb->sk_redir = (unsigned long)sk_redir;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:483:17: error: cannot assign to variable 'skb' with
const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
net/core/skmsg.c:819:21: warning: unused variable 'tcp' [-Wunused-variable]
struct tcp_skb_cb *tcp;
^
1 warning and 3 errors generated.
--
In file included from net/ipv4/esp4.c:22:
In file included from include/net/espintcp.h:6:
> include/linux/skmsg.h:475:16: error: cannot assign to variable
'skb' with const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:473:48: note: variable 'skb' declared const here
void skb_bpf_set_ingress(const struct sk_buff *skb)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:481:16: error: cannot assign to variable 'skb' with
const-qualified type 'const struct sk_buff *'
skb->sk_redir = (unsigned long)sk_redir;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
include/linux/skmsg.h:483:17: error: cannot assign to variable 'skb' with
const-qualified type 'const struct sk_buff *'
skb->sk_redir |= BPF_F_INGRESS;
~~~~~~~~~~~~~ ^
include/linux/skmsg.h:479:46: note: variable 'skb' declared const here
void skb_bpf_set_redir(const struct sk_buff *skb, struct sock *sk_redir, bool ingress)
~~~~~~~~~~~~~~~~~~~~~~^~~
net/ipv4/esp4.c:1117:5: warning: format specifies type 'unsigned short' but the
argument has type 'int' [-Wformat]
aalg_desc->uinfo.auth.icv_fullbits / 8);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:373:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
1 warning and 3 errors generated.
vim +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