diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-06-10 23:19:08 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-10 10:38:50 -0700 |
commit | 948622f9840ad8d5c979c3c82505d1ee9e1f8b11 (patch) | |
tree | 0617413f2ec049bdd844f4f5bc9382429e9b5a77 /net/ipv4 | |
parent | 00fa28390c787e1a4643ef04d6615a1bec9afdb7 (diff) | |
download | linux-948622f9840ad8d5c979c3c82505d1ee9e1f8b11.tar.bz2 |
tcp: Make tcp_fastopen_alloc_ctx static
Fix sparse warning:
net/ipv4/tcp_fastopen.c:75:29: warning:
symbol 'tcp_fastopen_alloc_ctx' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Jason Baron <jbaron@akamai.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_fastopen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/tcp_fastopen.c b/net/ipv4/tcp_fastopen.c index 8e1580485c9e..7d19fa4c8121 100644 --- a/net/ipv4/tcp_fastopen.c +++ b/net/ipv4/tcp_fastopen.c @@ -72,9 +72,9 @@ void tcp_fastopen_ctx_destroy(struct net *net) call_rcu(&ctxt->rcu, tcp_fastopen_ctx_free); } -struct tcp_fastopen_context *tcp_fastopen_alloc_ctx(void *primary_key, - void *backup_key, - unsigned int len) +static struct tcp_fastopen_context *tcp_fastopen_alloc_ctx(void *primary_key, + void *backup_key, + unsigned int len) { struct tcp_fastopen_context *new_ctx; void *key = primary_key; |