From: kernel test robot <lkp@intel.com>
To: Arjun Roy <arjunroy.kdev@gmail.com>,
davem@davemloft.net, netdev@vger.kernel.org
Cc: kbuild-all@lists.01.org, arjunroy@google.com,
edumazet@google.com, soheil@google.com
Subject: Re: [net-next 1/8] tcp: Copy straggler unaligned data for TCP Rx. zerocopy.
Date: Fri, 13 Nov 2020 10:36:15 +0800 [thread overview]
Message-ID: <202011131006.fYay8JNw-lkp@intel.com> (raw)
In-Reply-To: <20201112190205.633640-2-arjunroy.kdev@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2319 bytes --]
Hi Arjun,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Arjun-Roy/Perf-optimizations-for-TCP-Recv-Zerocopy/20201113-030506
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git e545f86573937142b8a90bd65d476b9f001088cf
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.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/0day-ci/linux/commit/5c20c7c34817692f87427a655374172f6666d8ed
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Arjun-Roy/Perf-optimizations-for-TCP-Recv-Zerocopy/20201113-030506
git checkout 5c20c7c34817692f87427a655374172f6666d8ed
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
net/ipv4/tcp.c: In function 'tcp_copy_straggler_data':
>> net/ipv4/tcp.c:1754:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1754 | err = import_single_range(READ, (void __user *)zc->copybuf_address,
| ^
vim +1754 net/ipv4/tcp.c
1745
1746 static int tcp_copy_straggler_data(struct tcp_zerocopy_receive *zc,
1747 struct sk_buff *skb, u32 copylen,
1748 u32 *offset, u32 *seq)
1749 {
1750 struct msghdr msg = {};
1751 struct iovec iov;
1752 int err;
1753
> 1754 err = import_single_range(READ, (void __user *)zc->copybuf_address,
1755 copylen, &iov, &msg.msg_iter);
1756 if (err)
1757 return err;
1758 err = skb_copy_datagram_msg(skb, *offset, &msg, copylen);
1759 if (err)
1760 return err;
1761 zc->recv_skip_hint -= copylen;
1762 *offset += copylen;
1763 *seq += copylen;
1764 return (__s32)copylen;
1765 }
1766
---
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: 10889 bytes --]
next prev parent reply other threads:[~2020-11-13 2:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-12 19:01 [net-next 0/8] Perf. optimizations for TCP Recv. Zerocopy Arjun Roy
2020-11-12 19:01 ` [net-next 1/8] tcp: Copy straggler unaligned data for TCP Rx. zerocopy Arjun Roy
2020-11-13 2:36 ` kernel test robot [this message]
2020-11-12 19:01 ` [net-next 2/8] tcp: Introduce tcp_recvmsg_locked() Arjun Roy
2020-11-12 19:02 ` [net-next 3/8] tcp: Refactor skb frag fast-forward op for recv zerocopy Arjun Roy
2020-11-12 19:02 ` [net-next 4/8] tcp: Refactor frag-is-remappable test " Arjun Roy
2020-11-12 19:02 ` [net-next 5/8] tcp: Fast return if inq < PAGE_SIZE " Arjun Roy
2020-11-12 19:02 ` [net-next 6/8] tcp: Introduce short-circuit small reads " Arjun Roy
2020-11-12 19:02 ` [net-next 7/8] tcp: Set zerocopy hint when data is copied Arjun Roy
2020-11-12 19:02 ` [net-next 8/8] tcp: Defer vm zap unless actually needed for recv zerocopy Arjun Roy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202011131006.fYay8JNw-lkp@intel.com \
--to=lkp@intel.com \
--cc=arjunroy.kdev@gmail.com \
--cc=arjunroy@google.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kbuild-all@lists.01.org \
--cc=netdev@vger.kernel.org \
--cc=soheil@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).