提交 1c463e57 编写于 作者: R Randy Dunlap 提交者: David S. Miller

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: NRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0b836ddd
...@@ -1525,9 +1525,11 @@ void sock_edemux(struct sk_buff *skb) ...@@ -1525,9 +1525,11 @@ void sock_edemux(struct sk_buff *skb)
{ {
struct sock *sk = skb->sk; struct sock *sk = skb->sk;
#ifdef CONFIG_INET
if (sk->sk_state == TCP_TIME_WAIT) if (sk->sk_state == TCP_TIME_WAIT)
inet_twsk_put(inet_twsk(sk)); inet_twsk_put(inet_twsk(sk));
else else
#endif
sock_put(sk); sock_put(sk);
} }
EXPORT_SYMBOL(sock_edemux); EXPORT_SYMBOL(sock_edemux);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册