diff options
author | YueHaibing <[email protected]> | 2020-03-20 10:34:25 +0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-03-20 15:56:25 +0100 |
commit | a26527981af2988ae0f17f6d633848c019929e38 (patch) | |
tree | 10a827647d6e091d2091c075073bd1b71cd9cb1c /lib/test_overflow.c | |
parent | 65c93628599dff4cd7cfb70130d1f6a2203731ea (diff) |
bpf, tcp: Fix unused function warnings
If BPF_STREAM_PARSER is not set, gcc warns:
net/ipv4/tcp_bpf.c:483:12: warning: 'tcp_bpf_sendpage' defined but not used [-Wunused-function]
net/ipv4/tcp_bpf.c:395:12: warning: 'tcp_bpf_sendmsg' defined but not used [-Wunused-function]
net/ipv4/tcp_bpf.c:13:13: warning: 'tcp_bpf_stream_read' defined but not used [-Wunused-function]
Moves the unused functions into the #ifdef CONFIG_BPF_STREAM_PARSER.
Fixes: f747632b608f ("bpf: sockmap: Move generic sockmap hooks from BPF TCP")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Lorenz Bauer <[email protected]>
Reviewed-by: Jakub Sitnicki <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions