From: kbuild test robot <lkp@intel.com>
To: yuan linyu <cugyly@163.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org,
"David S . Miller" <davem@davemloft.net>,
yuan linyu <Linyu.Yuan@alcatel-sbell.com.cn>
Subject: Re: [PATCH net-next 1/2] net: move memcpy_to[from]_msg() from skbuff.h to socket.h
Date: Mon, 16 Oct 2017 16:49:59 +0800 [thread overview]
Message-ID: <201710161655.KsVXg7dP%fengguang.wu@intel.com> (raw)
In-Reply-To: <1507947993-4728-1-git-send-email-cugyly@163.com>
[-- Attachment #1: Type: text/plain, Size: 2879 bytes --]
Hi yuan,
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/yuan-linyu/net-add-skb_memcpy_to-from-_msg/20171016-154618
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.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
make.cross ARCH=xtensa
All error/warnings (new ones prefixed by >>):
In file included from include/uapi/linux/if.h:24:0,
from include/linux/inetdevice.h:7,
from net//ipv4/netfilter/ipt_MASQUERADE.c:13:
include/linux/socket.h: In function 'memcpy_from_msg':
>> include/linux/socket.h:59:63: error: 'EFAULT' undeclared (first use in this function)
return copy_from_iter_full(data, len, &msg->msg_iter) ? 0 : -EFAULT;
^
include/linux/socket.h:59:63: note: each undeclared identifier is reported only once for each function it appears in
include/linux/socket.h: In function 'memcpy_to_msg':
include/linux/socket.h:64:63: error: 'EFAULT' undeclared (first use in this function)
return copy_to_iter(data, len, &msg->msg_iter) == len ? 0 : -EFAULT;
^
--
In file included from include/uapi/linux/nfc.h:25:0,
from net/nfc/rawsock.c:25:
include/linux/socket.h: In function 'memcpy_from_msg':
>> include/linux/socket.h:59:63: error: 'EFAULT' undeclared (first use in this function)
return copy_from_iter_full(data, len, &msg->msg_iter) ? 0 : -EFAULT;
^
include/linux/socket.h:59:63: note: each undeclared identifier is reported only once for each function it appears in
include/linux/socket.h: In function 'memcpy_to_msg':
include/linux/socket.h:64:63: error: 'EFAULT' undeclared (first use in this function)
return copy_to_iter(data, len, &msg->msg_iter) == len ? 0 : -EFAULT;
^
In file included from include/uapi/linux/nfc.h:25:0,
from net/nfc/rawsock.c:25:
include/linux/socket.h: In function 'memcpy_from_msg':
>> include/linux/socket.h:60:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +/EFAULT +59 include/linux/socket.h
56
57 static inline int memcpy_from_msg(void *data, struct msghdr *msg, int len)
58 {
> 59 return copy_from_iter_full(data, len, &msg->msg_iter) ? 0 : -EFAULT;
> 60 }
61
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 51658 bytes --]
prev parent reply other threads:[~2017-10-16 8:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-14 2:26 [PATCH net-next 1/2] net: move memcpy_to[from]_msg() from skbuff.h to socket.h yuan linyu
2017-10-16 8:49 ` kbuild test robot [this message]
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=201710161655.KsVXg7dP%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=Linyu.Yuan@alcatel-sbell.com.cn \
--cc=cugyly@163.com \
--cc=davem@davemloft.net \
--cc=kbuild-all@01.org \
--cc=netdev@vger.kernel.org \
/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