diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2024-03-26 10:29:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-03-29 12:48:23 +0300 |
commit | af398bd0cb2151a581027a19bd995f72af2310ac (patch) | |
tree | fbac903dc33bf6eb3dff84d634d9cf19e76549d5 /include | |
parent | 17593357e70c6dcccda017fa10432a78680e676b (diff) | |
download | linux-af398bd0cb2151a581027a19bd995f72af2310ac.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/smc.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/smc.h b/include/net/smc.h index c9dcb30e3fd9..10684d0a33df 100644 --- a/include/net/smc.h +++ b/include/net/smc.h @@ -26,9 +26,6 @@ struct smc_hashinfo { struct hlist_head ht; }; -int smc_hash_sk(struct sock *sk); -void smc_unhash_sk(struct sock *sk); - /* SMCD/ISM device driver interface */ struct smcd_dmb { u64 dmb_tok; |