[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120711091233.GA24436@localhost>
Date: Wed, 11 Jul 2012 17:12:33 +0800
From: wfg@...ux.intel.com
To: "David S. Miller" <davem@...emloft.net>
Cc: netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: [net-next:master 73/84] net/ipv4/tcp_metrics.c:252:3: error:
implicit declaration of function 'inet6_twsk'
Hi David,
Kernel build failed on
tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: fdd28d7328f4c3ddf77ba163e257d7dc48392767
commit: 81166dd6fa8eb780b2132d32fbc77eb6ac04e44e [73/84] tcp: Move timestamps from inetpeer to metrics cache.
config: i386-randconfig-net2 (attached as .config)
All related error/warning messages:
net/ipv4/tcp_metrics.c: In function '__tcp_get_metrics_tw':
net/ipv4/tcp_metrics.c:252:3: error: implicit declaration of function 'inet6_twsk' [-Werror=implicit-function-declaration]
net/ipv4/tcp_metrics.c:252:7: warning: assignment makes pointer from integer without a cast [enabled by default]
net/ipv4/tcp_metrics.c:253:41: error: dereferencing pointer to incomplete type
vim +252 net/ipv4/tcp_metrics.c
249 hash = (__force unsigned int) addr.addr.a4;
250 break;
251 case AF_INET6:
> 252 tw6 = inet6_twsk((struct sock *)tw);
253 *(struct in6_addr *)addr.addr.a6 = tw6->tw_v6_daddr;
254 hash = ((__force unsigned int) addr.addr.a6[0] ^
255 (__force unsigned int) addr.addr.a6[1] ^
The problem is, inet6_twsk() and struct inet6_timewait_sock are only
defined in include/linux/ipv6.h under CONFIG_IPV6.
---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <wfg@...ux.intel.com> Intel Corporation
View attachment ".config" of type "text/plain" (66116 bytes)
Powered by blists - more mailing lists