Content-Type: multipart/mixed; boundary="===============7587090207860071463==" MIME-Version: 1.0 From: yajun.deng@linux.dev To: kbuild-all@lists.01.org Subject: Re: [PATCH net-next] net: Modify sock_set_keepalive() for more scenarios Date: Tue, 03 Aug 2021 11:42:39 +0000 Message-ID: In-Reply-To: <202108031929.b1AMeeUj-lkp@intel.com> List-Id: --===============7587090207860071463== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The tcp_create_listen_sock() function was already dropped in commit <2dc6b1= 158c28c3a5e86d162628810312f98d5e97> by Alexander Aring. = August 3, 2021 7:28 PM, "kernel test robot" wrote: > Hi Yajun, > = > Thank you for the patch! Yet something to improve: > = > [auto build test ERROR on net-next/master] > = > url: > https://github.com/0day-ci/linux/commits/Yajun-Deng/net-Modify-sock_set_k= eepalive-for-more-scenarios > 20210803-162757 > base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > 7cdd0a89ec70ce6a720171f1f7817ee9502b134c > config: m68k-allmodconfig (attached as .config) > compiler: m68k-linux-gcc (GCC) 10.3.0 > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.c= ross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/0day-ci/linux/commit/1dd4cca54718feb13bbafafb8104a41= 4ddc49662 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review > Yajun-Deng/net-Modify-sock_set_keepalive-for-more-scenarios/20210803-1627= 57 > git checkout 1dd4cca54718feb13bbafafb8104a414ddc49662 > # save the attached .config to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-10.3.0 make.cross O=3Db= uild_dir ARCH=3Dm68k > SHELL=3D/bin/bash fs/dlm/ > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All errors (new ones prefixed by >>): > = > fs/dlm/lowcomms.c: In function 'tcp_create_listen_sock': > = >>> fs/dlm/lowcomms.c:1359:2: error: too few arguments to function 'sock_se= t_keepalive' > = > 1359 | sock_set_keepalive(sock->sk); > | ^~~~~~~~~~~~~~~~~~ > In file included from fs/dlm/lowcomms.c:46: > include/net/sock.h:2775:6: note: declared here > 2775 | void sock_set_keepalive(struct sock *sk, bool valbool); > | ^~~~~~~~~~~~~~~~~~ > = > vim +/sock_set_keepalive +1359 fs/dlm/lowcomms.c > = > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1319 > d11ccd451b6556 fs/dlm/lowcomms.c Alexander Aring 2020-11-02 1320 /* On er= ror caller must run > dlm_close_sock() for the > d11ccd451b6556 fs/dlm/lowcomms.c Alexander Aring 2020-11-02 1321 * listen= connection socket. > d11ccd451b6556 fs/dlm/lowcomms.c Alexander Aring 2020-11-02 1322 */ > d11ccd451b6556 fs/dlm/lowcomms.c Alexander Aring 2020-11-02 1323 static i= nt > tcp_create_listen_sock(struct listen_connection *con, > ac33d071059557 fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-12-06 1324 st= ruct sockaddr_storage > *saddr) > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1325 { > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1326 st= ruct socket *sock =3D NULL; > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1327 in= t result =3D 0; > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1328 in= t addr_len; > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1329 > 6ed7257b46709e fs/dlm/lowcomms.c Patrick Caulfield 2007-04-17 1330 if (dl= m_local_addr[0]->ss_family > =3D=3D AF_INET) > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1331 ad= dr_len =3D sizeof(struct > sockaddr_in); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1332 el= se > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1333 ad= dr_len =3D sizeof(struct > sockaddr_in6); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1334 > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1335 /*= Create a socket to > communicate with */ > eeb1bd5c40edb0 fs/dlm/lowcomms.c Eric W. Biederman 2015-05-08 1336 result= =3D > sock_create_kern(&init_net, dlm_local_addr[0]->ss_family, > eeb1bd5c40edb0 fs/dlm/lowcomms.c Eric W. Biederman 2015-05-08 1337 SOCK_S= TREAM, IPPROTO_TCP, > &sock); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1338 if= (result < 0) { > 617e82e10ccf96 fs/dlm/lowcomms.c David Teigland 2007-04-26 1339 log_print= ("Can't create listening > comms socket"); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1340 go= to create_out; > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1341 } > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1342 > a5b7ab6352bfaa fs/dlm/lowcomms.c Alexander Aring 2020-06-26 1343 sock_set= _mark(sock->sk, > dlm_config.ci_mark); > a5b7ab6352bfaa fs/dlm/lowcomms.c Alexander Aring 2020-06-26 1344 > cb2d45da81c86d fs/dlm/lowcomms.c David Teigland 2010-11-12 1345 /* Turn o= ff Nagle's algorithm */ > 12abc5ee7873a0 fs/dlm/lowcomms.c Christoph Hellwig 2020-05-28 1346 tcp_so= ck_set_nodelay(sock->sk); > cb2d45da81c86d fs/dlm/lowcomms.c David Teigland 2010-11-12 1347 > b58f0e8f38c0a4 fs/dlm/lowcomms.c Christoph Hellwig 2020-05-28 1348 sock_s= et_reuseaddr(sock->sk); > 6ed7257b46709e fs/dlm/lowcomms.c Patrick Caulfield 2007-04-17 1349 > d11ccd451b6556 fs/dlm/lowcomms.c Alexander Aring 2020-11-02 1350 add_list= en_sock(sock, con); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1351 > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1352 /*= Bind to our port */ > 68c817a1c4e21b fs/dlm/lowcomms-tcp.c David Teigland 2007-01-09 1353 make_= sockaddr(saddr, > dlm_config.ci_tcp_port, &addr_len); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1354 re= sult =3D > sock->ops->bind(sock, (struct sockaddr *) saddr, addr_len); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1355 if= (result < 0) { > 617e82e10ccf96 fs/dlm/lowcomms.c David Teigland 2007-04-26 1356 log_print= ("Can't bind to port %d", > dlm_config.ci_tcp_port); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1357 go= to create_out; > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1358 } > ce3d9544cecacd fs/dlm/lowcomms.c Christoph Hellwig 2020-05-28 @1359 sock_= set_keepalive(sock->sk); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1360 > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1361 re= sult =3D > sock->ops->listen(sock, 5); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1362 if= (result < 0) { > 617e82e10ccf96 fs/dlm/lowcomms.c David Teigland 2007-04-26 1363 log_print= ("Can't listen on port > %d", dlm_config.ci_tcp_port); > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1364 go= to create_out; > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1365 } > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1366 > d11ccd451b6556 fs/dlm/lowcomms.c Alexander Aring 2020-11-02 1367 return 0; > d11ccd451b6556 fs/dlm/lowcomms.c Alexander Aring 2020-11-02 1368 > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1369 cr= eate_out: > d11ccd451b6556 fs/dlm/lowcomms.c Alexander Aring 2020-11-02 1370 return r= esult; > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1371 } > fdda387f73947e fs/dlm/lowcomms-tcp.c Patrick Caulfield 2006-11-02 1372 > = > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7587090207860071463==--