net/smc: make smc_hash_sk/smc_unhash_sk static
authorZhengchao Shao <shaozhengchao@huawei.com>
Tue, 26 Mar 2024 07:29:52 +0000 (15:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2024 09:48:23 +0000 (09:48 +0000)
commitaf398bd0cb2151a581027a19bd995f72af2310ac
treefbac903dc33bf6eb3dff84d634d9cf19e76549d5
parent17593357e70c6dcccda017fa10432a78680e676b
net/smc: make smc_hash_sk/smc_unhash_sk static

smc_hash_sk and smc_unhash_sk are only used in af_smc.c, so make them
static and remove the output symbol. They can be called under the path
.prot->hash()/unhash().

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/smc.h
net/smc/af_smc.c