[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202002280752.8pv8rrXv%lkp@intel.com>
Date: Fri, 28 Feb 2020 07:29:26 +0800
From: kbuild test robot <lkp@...el.com>
To: Paolo Abeni <pabeni@...hat.com>
Cc: kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
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: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project 949134e2fefd34a38ed71de90dffe2300e2e1139)
reproduce:
# FIXME the reproduce steps for clang is not ready yet
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:103:68: error: too many arguments to function call, expected 5, have 6
skb = __skb_recv_datagram(sk, &ctx->ike_queue, flags, NULL, &off, &err);
~~~~~~~~~~~~~~~~~~~ ^~~~
include/linux/skbuff.h:3523:17: note: '__skb_recv_datagram' declared here
struct sk_buff *__skb_recv_datagram(struct sock *sk,
^
1 error generated.
vim +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" (72233 bytes)
Powered by blists - more mailing lists