[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109280743.KqU2n8UH-lkp@intel.com>
Date: Tue, 28 Sep 2021 07:01:49 +0800
From: kernel test robot <lkp@...el.com>
To: Cong Wang <cong.wang@...edance.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [congwang:bpf2 2/4] net/tls/tls_main.c:684:53: error:
'tls_sw_sock_is_readable' undeclared
tree: https://github.com/congwang/linux.git bpf2
head: ec3836e59604af89a5f07045ea7a3a1f60ff2cf4
commit: 494bffdb5681432000044a26c4846780e24d76f2 [2/4] net: rename ->stream_memory_read to ->sock_is_readable
config: openrisc-buildonly-randconfig-r006-20210927 (attached as .config)
compiler: or1k-linux-gcc (GCC) 11.2.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/494bffdb5681432000044a26c4846780e24d76f2
git remote add congwang https://github.com/congwang/linux.git
git fetch --no-tags congwang bpf2
git checkout 494bffdb5681432000044a26c4846780e24d76f2
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash net/core/ net/tls/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All error/warnings (new ones prefixed by >>):
net/tls/tls_main.c: In function 'build_protos':
>> net/tls/tls_main.c:684:53: error: 'tls_sw_sock_is_readable' undeclared (first use in this function)
684 | prot[TLS_BASE][TLS_SW].sock_is_readable = tls_sw_sock_is_readable;
| ^~~~~~~~~~~~~~~~~~~~~~~
net/tls/tls_main.c:684:53: note: each undeclared identifier is reported only once for each function it appears in
--
>> net/tls/tls_sw.c:2029:6: warning: no previous prototype for 'tls_sw_sock_is_readable' [-Wmissing-prototypes]
2029 | bool tls_sw_sock_is_readable(const struct sock *sk)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/tls_sw_sock_is_readable +684 net/tls/tls_main.c
669
670 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
671 const struct proto *base)
672 {
673 prot[TLS_BASE][TLS_BASE] = *base;
674 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt;
675 prot[TLS_BASE][TLS_BASE].getsockopt = tls_getsockopt;
676 prot[TLS_BASE][TLS_BASE].close = tls_sk_proto_close;
677
678 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE];
679 prot[TLS_SW][TLS_BASE].sendmsg = tls_sw_sendmsg;
680 prot[TLS_SW][TLS_BASE].sendpage = tls_sw_sendpage;
681
682 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE];
683 prot[TLS_BASE][TLS_SW].recvmsg = tls_sw_recvmsg;
> 684 prot[TLS_BASE][TLS_SW].sock_is_readable = tls_sw_sock_is_readable;
685 prot[TLS_BASE][TLS_SW].close = tls_sk_proto_close;
686
687 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE];
688 prot[TLS_SW][TLS_SW].recvmsg = tls_sw_recvmsg;
689 prot[TLS_SW][TLS_SW].sock_is_readable = tls_sw_sock_is_readable;
690 prot[TLS_SW][TLS_SW].close = tls_sk_proto_close;
691
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (35133 bytes)
Powered by blists - more mailing lists