unused function errors in tcp_lro.c

From: Gary Jennejohn <gljennjohn_at_gmail.com>
Date: Wed, 17 Feb 2021 18:12:39 +0100
Running buildkernel after 48e62e6561b..effe8b9cb31

--------------------------------------------------------------
>>> stage 3.1: building everything
--------------------------------------------------------------
/usr/src/sys/netinet/tcp_lro.c:1297:1: warning: unused function 'build_ack_entry' [-Wunused-function]
build_ack_entry(struct tcp_ackent *ae, struct tcphdr *th, struct mbuf *m, uint16_t hdr_len, uint16_t iptos)
^
/usr/src/sys/netinet/tcp_lro.c:1339:1: warning: unused function 'do_bpf_and_csum' [-Wunused-function]
do_bpf_and_csum(struct inpcb *inp, struct lro_ctrl *lc, struct lro_entry *le,
^
2 warnings generated.

These function declarations should be gated using #ifdef TCPHPTS.

-- 
Gary Jennejohn
Received on Wed Feb 17 2021 - 16:12:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:27 UTC