]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: tcp: Guard declarations with CONFIG_NET_SOCK_MSG
authorLorenz Bauer <lmb@cloudflare.com>
Mon, 9 Mar 2020 11:12:35 +0000 (11:12 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 9 Mar 2020 21:34:58 +0000 (22:34 +0100)
commitfe367fbb6c4755a30fde20e009cd0a08bdcd441b
treeddfbd323d0b4352ac9fb7711ff61b6f1f421468c
parent06852fab34abd969063e93d318be96f7e566ceea
bpf: tcp: Guard declarations with CONFIG_NET_SOCK_MSG

tcp_bpf.c is only included in the build if CONFIG_NET_SOCK_MSG is
selected. The declaration should therefore be guarded as such.

Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200309111243.6982-5-lmb@cloudflare.com
include/net/tcp.h