[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201610300353.ZJFwfjJs%fengguang.wu@intel.com>
Date: Sun, 30 Oct 2016 03:02:57 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Cyrill Gorcunov <gorcunov@...il.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 68/93] include/net/raw.h:71:21: error: field 'inet'
has incomplete type
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@...sh.net>
:::::: CC: David S. Miller <davem@...emloft.net>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (28884 bytes)
Powered by blists - more mailing lists