From: kbuild test robot <lkp@intel.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: kbuild-all@01.org, David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>,
Slava Shwartsman <slavash@mellanox.com>
Subject: Re: [PATCH net-next] net: adjust skb->truesize in pskb_expand_head()
Date: Fri, 27 Jan 2017 10:22:48 +0800 [thread overview]
Message-ID: <201701271009.NCgqcrWI%fengguang.wu@intel.com> (raw)
In-Reply-To: <1485476480.5145.194.camel@edumazet-glaptop3.roam.corp.google.com>
[-- Attachment #1: Type: text/plain, Size: 2823 bytes --]
Hi Eric,
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/net-adjust-skb-truesize-in-pskb_expand_head/20170127-082517
config: i386-randconfig-x0-01270914 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/module.h:9,
from net/core/skbuff.c:41:
net/core/skbuff.c: In function 'pskb_expand_head':
net/core/skbuff.c:1265:37: error: 'sock_edemux' undeclared (first use in this function)
if (!skb->sk || skb->destructor == sock_edemux)
^
include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> net/core/skbuff.c:1265:2: note: in expansion of macro 'if'
if (!skb->sk || skb->destructor == sock_edemux)
^~
net/core/skbuff.c:1265:37: note: each undeclared identifier is reported only once for each function it appears in
if (!skb->sk || skb->destructor == sock_edemux)
^
include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> net/core/skbuff.c:1265:2: note: in expansion of macro 'if'
if (!skb->sk || skb->destructor == sock_edemux)
^~
vim +/if +1265 net/core/skbuff.c
1249 skb->end = size;
1250 off = nhead;
1251 #else
1252 skb->end = skb->head + size;
1253 #endif
1254 skb->tail += off;
1255 skb_headers_offset_update(skb, nhead);
1256 skb->cloned = 0;
1257 skb->hdr_len = 0;
1258 skb->nohdr = 0;
1259 atomic_set(&skb_shinfo(skb)->dataref, 1);
1260
1261 /* It is not generally safe to change skb->truesize.
1262 * For the moment, we really care of rx path, or
1263 * when skb is orphaned (not attached to a socket)
1264 */
> 1265 if (!skb->sk || skb->destructor == sock_edemux)
1266 skb->truesize += size - osize;
1267
1268 return 0;
1269
1270 nofrags:
1271 kfree(data);
1272 nodata:
1273 return -ENOMEM;
---
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: 25232 bytes --]
next prev parent reply other threads:[~2017-01-27 2:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-27 0:21 [PATCH net-next] net: adjust skb->truesize in pskb_expand_head() Eric Dumazet
2017-01-27 2:22 ` kbuild test robot [this message]
2017-01-27 2:34 ` Eric Dumazet
2017-01-27 10:49 ` David Laight
2017-01-27 14:44 ` Eric Dumazet
2017-01-27 15:46 ` David Laight
2017-01-27 16:14 ` Eric Dumazet
2017-01-27 17:24 ` David Laight
2017-01-27 18:16 ` Eric Dumazet
2017-01-27 15:11 ` [PATCH v2 " Eric Dumazet
2017-01-27 17:03 ` David Miller
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=201701271009.NCgqcrWI%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=kbuild-all@01.org \
--cc=netdev@vger.kernel.org \
--cc=slavash@mellanox.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