From: kbuild test robot <fengguang.wu@intel.com>
To: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org
Subject: [net-next:master 68/93] include/net/raw.h:71:21: error: field 'inet' has incomplete type
Date: Sun, 30 Oct 2016 03:02:57 +0800 [thread overview]
Message-ID: <201610300353.ZJFwfjJs%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2511 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: c778453b138889587eee23e246e231bb12d1e80d
commit: 432490f9d455fb842d70219f22d9d2c812371676 [68/93] net: ip, diag -- Add diag interface for raw sockets
config: i386-randconfig-x012-201644 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 432490f9d455fb842d70219f22d9d2c812371676
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
In file included from net/ipv4/raw_diag.c:6:0:
>> include/net/raw.h:71:21: error: field 'inet' has incomplete type
struct inet_sock inet;
^~~~
net/ipv4/raw_diag.c: In function 'raw_diag_dump':
>> net/ipv4/raw_diag.c:166:29: error: implicit declaration of function 'inet_sk' [-Werror=implicit-function-declaration]
struct inet_sock *inet = inet_sk(sk);
^~~~~~~
>> net/ipv4/raw_diag.c:166:29: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
>> net/ipv4/raw_diag.c:174:33: error: dereferencing pointer to incomplete type 'struct inet_sock'
if (r->id.idiag_sport != inet->inet_sport &&
^~
cc1: some warnings being treated as errors
vim +/inet +71 include/net/raw.h
20380731 Arnaldo Carvalho de Melo 2005-08-16 65
086c653f Craig Gallek 2016-02-10 66 int raw_hash_sk(struct sock *sk);
fc8717ba Pavel Emelyanov 2008-03-22 67 void raw_unhash_sk(struct sock *sk);
65b4c50b Pavel Emelyanov 2007-11-19 68
f74e49b5 Patrick McHardy 2010-04-13 69 struct raw_sock {
f74e49b5 Patrick McHardy 2010-04-13 70 /* inet_sock has to be the first member */
f74e49b5 Patrick McHardy 2010-04-13 @71 struct inet_sock inet;
f74e49b5 Patrick McHardy 2010-04-13 72 struct icmp_filter filter;
f0ad0860 Patrick McHardy 2010-04-13 73 u32 ipmr_table;
f74e49b5 Patrick McHardy 2010-04-13 74 };
:::::: The code at line 71 was first introduced by commit
:::::: f74e49b5613206fb18468bdc9509a1db746aa01b ipv4: raw: move struct raw_sock and raw_sk() to include/net/raw.h
:::::: TO: Patrick McHardy <kaber@trash.net>
:::::: CC: David S. Miller <davem@davemloft.net>
---
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: 28884 bytes --]
reply other threads:[~2016-10-29 19:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201610300353.ZJFwfjJs%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=gorcunov@gmail.com \
--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