Commit 948622f9 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarJason Baron <jbaron@akamai.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 00fa2839
...@@ -72,9 +72,9 @@ void tcp_fastopen_ctx_destroy(struct net *net) ...@@ -72,9 +72,9 @@ void tcp_fastopen_ctx_destroy(struct net *net)
call_rcu(&ctxt->rcu, tcp_fastopen_ctx_free); call_rcu(&ctxt->rcu, tcp_fastopen_ctx_free);
} }
struct tcp_fastopen_context *tcp_fastopen_alloc_ctx(void *primary_key, static struct tcp_fastopen_context *tcp_fastopen_alloc_ctx(void *primary_key,
void *backup_key, void *backup_key,
unsigned int len) unsigned int len)
{ {
struct tcp_fastopen_context *new_ctx; struct tcp_fastopen_context *new_ctx;
void *key = primary_key; void *key = primary_key;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment