]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, tcp: Make tcp_bpf_recvmsg static
authorYueHaibing <yuehaibing@huawei.com>
Fri, 20 Mar 2020 02:34:26 +0000 (10:34 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 20 Mar 2020 14:56:55 +0000 (15:56 +0100)
commitd1f944a73a8321447c95845f8be6742408f6fdf9
tree22de800386bce70aa83175cdac9d81c0ed12f5ff
parent31981ea364b01e4a8aacbcf0581ef130602a3eb7
bpf, tcp: Make tcp_bpf_recvmsg static

After commit a77f3a46f382 ("bpf: sockmap: Move generic sockmap
hooks from BPF TCP"), tcp_bpf_recvmsg() is not used out of
tcp_bpf.c, so make it static and remove it from tcp.h. Also move
it to BPF_STREAM_PARSER #ifdef to fix unused function warnings.

Fixes: a77f3a46f382 ("bpf: sockmap: Move generic sockmap hooks from BPF TCP")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200320023426.60684-3-yuehaibing@huawei.com
include/net/tcp.h
net/ipv4/tcp_bpf.c