mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 11:26:46 +07:00
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>
This commit is contained in:
parent
00fa28390c
commit
948622f984
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user