diff options
author | Eric Dumazet <edumazet@google.com> | 2020-06-23 15:31:11 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-23 20:10:15 -0700 |
commit | 243600ee660531d2b5b5ef3faab90c5f8ff4c2b6 (patch) | |
tree | 6cb9a13ff8a8684941b2a7f0fccc566cfeae4b88 | |
parent | 4640338c36af88b74550b995f425921729f0b59f (diff) | |
download | linux-243600ee660531d2b5b5ef3faab90c5f8ff4c2b6.tar.gz linux-243600ee660531d2b5b5ef3faab90c5f8ff4c2b6.tar.bz2 linux-243600ee660531d2b5b5ef3faab90c5f8ff4c2b6.zip |
tcp: add declarations to avoid warnings
Remove these errors:
net/ipv6/tcp_ipv6.c:1550:29: warning: symbol 'tcp_v6_rcv' was not declared. Should it be static?
net/ipv6/tcp_ipv6.c:1770:30: warning: symbol 'tcp_v6_early_demux' was not declared. Should it be static?
net/ipv6/tcp_ipv6.c:1550:29: warning: no previous prototype for 'tcp_v6_rcv' [-Wmissing-prototypes]
1550 | INDIRECT_CALLABLE_SCOPE int tcp_v6_rcv(struct sk_buff *skb)
| ^~~~~~~~~~
net/ipv6/tcp_ipv6.c:1770:30: warning: no previous prototype for 'tcp_v6_early_demux' [-Wmissing-prototypes]
1770 | INDIRECT_CALLABLE_SCOPE void tcp_v6_early_demux(struct sk_buff *skb)
| ^~~~~~~~~~~~~~~~~~
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index cd9cc348dbf9..a8c36fa886a4 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -934,6 +934,8 @@ static inline int tcp_v6_sdif(const struct sk_buff *skb) } INDIRECT_CALLABLE_DECLARE(void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb)); +INDIRECT_CALLABLE_DECLARE(int tcp_v6_rcv(struct sk_buff *skb)); +INDIRECT_CALLABLE_DECLARE(void tcp_v6_early_demux(struct sk_buff *skb)); #endif |