Thread (3 messages) flat view 3 messages, 2 authors, 2012-07-11

[net-next:master 73/84] net/ipv4/tcp_metrics.c:252:3: error: implicit declaration of function 'inet6_twsk'

From: <hidden>
Date: 2012-07-11 09:12:41
Also in: kernel-janitors

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 [off-list ref]                     Intel Corporation

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help