mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [congwang:bpf2 2/4] net/tls/tls_main.c:684:53: error: 'tls_sw_sock_is_readable' undeclared
@ 2021-09-27 23:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-27 23:01 UTC (permalink / raw)
  To: Cong Wang; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3043 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35133 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-27 23:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-27 23:01 [congwang:bpf2 2/4] net/tls/tls_main.c:684:53: error: 'tls_sw_sock_is_readable' undeclared kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®