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)
commit5da0040442312a2b696748f8240243ce543a4970
treeddfbd323d0b4352ac9fb7711ff61b6f1f421468c
parentd19da360ee0f3e6c1375391db1a724b66fd43312
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