[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202002280355.gieOGoxn%lkp@intel.com>
Date: Fri, 28 Feb 2020 03:51:55 +0800
From: kbuild test robot <lkp@...el.com>
To: Paolo Abeni <pabeni@...hat.com>
Cc: kbuild-all@...ts.01.org, netdev@...r.kernel.org
Subject: Re: [PATCH net-next 2/2] net: datagram: drop 'destructor' argument
from several helpers
Hi Paolo,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
[also build test ERROR on net/master linus/master v5.6-rc3 next-20200227]
[cannot apply to ipvs/master sparc-next/master]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Paolo-Abeni/net-cleanup-datagram-receive-helpers/20200227-214333
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 2b99e54b30ed56201dedd91e6049ed83aa9d2302
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
net//xfrm/espintcp.c: In function 'espintcp_recvmsg':
>> net//xfrm/espintcp.c:103:8: error: too many arguments to function '__skb_recv_datagram'
skb = __skb_recv_datagram(sk, &ctx->ike_queue, flags, NULL, &off, &err);
^~~~~~~~~~~~~~~~~~~
In file included from include/linux/tcp.h:17:0,
from include/net/tcp.h:20,
from net//xfrm/espintcp.c:2:
include/linux/skbuff.h:3523:17: note: declared here
struct sk_buff *__skb_recv_datagram(struct sock *sk,
^~~~~~~~~~~~~~~~~~~
vim +/__skb_recv_datagram +103 net//xfrm/espintcp.c
e27cca96cd68fa Sabrina Dubroca 2019-11-25 91
e27cca96cd68fa Sabrina Dubroca 2019-11-25 92 static int espintcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
e27cca96cd68fa Sabrina Dubroca 2019-11-25 93 int nonblock, int flags, int *addr_len)
e27cca96cd68fa Sabrina Dubroca 2019-11-25 94 {
e27cca96cd68fa Sabrina Dubroca 2019-11-25 95 struct espintcp_ctx *ctx = espintcp_getctx(sk);
e27cca96cd68fa Sabrina Dubroca 2019-11-25 96 struct sk_buff *skb;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 97 int err = 0;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 98 int copied;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 99 int off = 0;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 100
e27cca96cd68fa Sabrina Dubroca 2019-11-25 101 flags |= nonblock ? MSG_DONTWAIT : 0;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 102
e27cca96cd68fa Sabrina Dubroca 2019-11-25 @103 skb = __skb_recv_datagram(sk, &ctx->ike_queue, flags, NULL, &off, &err);
e27cca96cd68fa Sabrina Dubroca 2019-11-25 104 if (!skb)
e27cca96cd68fa Sabrina Dubroca 2019-11-25 105 return err;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 106
e27cca96cd68fa Sabrina Dubroca 2019-11-25 107 copied = len;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 108 if (copied > skb->len)
e27cca96cd68fa Sabrina Dubroca 2019-11-25 109 copied = skb->len;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 110 else if (copied < skb->len)
e27cca96cd68fa Sabrina Dubroca 2019-11-25 111 msg->msg_flags |= MSG_TRUNC;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 112
e27cca96cd68fa Sabrina Dubroca 2019-11-25 113 err = skb_copy_datagram_msg(skb, 0, msg, copied);
e27cca96cd68fa Sabrina Dubroca 2019-11-25 114 if (unlikely(err)) {
e27cca96cd68fa Sabrina Dubroca 2019-11-25 115 kfree_skb(skb);
e27cca96cd68fa Sabrina Dubroca 2019-11-25 116 return err;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 117 }
e27cca96cd68fa Sabrina Dubroca 2019-11-25 118
e27cca96cd68fa Sabrina Dubroca 2019-11-25 119 if (flags & MSG_TRUNC)
e27cca96cd68fa Sabrina Dubroca 2019-11-25 120 copied = skb->len;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 121 kfree_skb(skb);
e27cca96cd68fa Sabrina Dubroca 2019-11-25 122 return copied;
e27cca96cd68fa Sabrina Dubroca 2019-11-25 123 }
e27cca96cd68fa Sabrina Dubroca 2019-11-25 124
:::::: The code at line 103 was first introduced by commit
:::::: e27cca96cd68fa2c6814c90f9a1cfd36bb68c593 xfrm: add espintcp (RFC 8229)
:::::: TO: Sabrina Dubroca <sd@...asysnail.net>
:::::: CC: Steffen Klassert <steffen.klassert@...unet.com>
---
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" (52815 bytes)
Powered by blists - more mailing lists