From: Randy Dunlap Date: Mon, 10 Sep 2012 16:13:07 +0000 (-0700) Subject: net: fix net/core/sock.c build error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1c463e57b32e3b6a3250fe75d1d56cb598d664e6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git net: fix net/core/sock.c build error Fix net/core/sock.c build error when CONFIG_INET is not enabled: net/built-in.o: In function `sock_edemux': (.text+0xd396): undefined reference to `inet_twsk_put' Signed-off-by: Randy Dunlap Signed-off-by: David S. Miller --- diff --git a/net/core/sock.c b/net/core/sock.c index 7f64467535d..30579207612 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -1525,9 +1525,11 @@ void sock_edemux(struct sk_buff *skb) { struct sock *sk = skb->sk; +#ifdef CONFIG_INET if (sk->sk_state == TCP_TIME_WAIT) inet_twsk_put(inet_twsk(sk)); else +#endif sock_put(sk); } EXPORT_SYMBOL(sock_edemux);