]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix build fong CONFIG_MPTCP=n
authorEric Dumazet <edumazet@google.com>
Sat, 1 Aug 2020 02:09:29 +0000 (19:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Aug 2020 18:46:29 +0000 (11:46 -0700)
commit8611be3f91bf8516ab01e01523fb269ec0e039bf
tree39ffb14de42e61e9f9354e3624c6c1136b5d32ba
parent23279903b1ed981b3d890bfd368747792ab719cf
tcp: fix build fong CONFIG_MPTCP=n

Fixes these errors:

net/ipv4/syncookies.c: In function 'tcp_get_cookie_sock':
net/ipv4/syncookies.c:216:19: error: 'struct tcp_request_sock' has no
member named 'drop_req'
  216 |   if (tcp_rsk(req)->drop_req) {
      |                   ^~
net/ipv4/syncookies.c: In function 'cookie_tcp_reqsk_alloc':
net/ipv4/syncookies.c:289:27: warning: unused variable 'treq'
[-Wunused-variable]
  289 |  struct tcp_request_sock *treq;
      |                           ^~~~
make[3]: *** [scripts/Makefile.build:280: net/ipv4/syncookies.o] Error 1
make[3]: *** Waiting for unfinished jobs....

Fixes: dbbc43de3bfb ("mptcp: enable JOIN requests even if cookies are in use")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Florian Westphal <fw@strlen.de>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/syncookies.c