After commit f747632b608f ("bpf: sockmap: Move generic sockmapFixes: f747632b608f ("bpf: sockmap: Move generic sockmap hooks from BPF TCP")
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.
Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
---
include/net/tcp.h | 2 -
net/ipv4/tcp_bpf.c | 124 ++++++++++++++++++++++-----------------------
2 files changed, 62 insertions(+), 64 deletions(-)