Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/smc: Remove unused function declarations

commit f9aab6f2ce57 ("net/smc: immediate freeing in smc_lgr_cleanup_early()")
left behind smc_lgr_schedule_free_work_fast() declaration.
And since commit 349d43127dac ("net/smc: fix kernel panic caused by race of smc_sock")
smc_ib_modify_qp_reset() is not used anymore.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Tony Lu <tonylu@linux.alibaba.com>
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Link: https://lore.kernel.org/r/20230729121929.17180-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Yue Haibing and committed by
Jakub Kicinski
4cbc32a8 bfd95b56

-2
-1
net/smc/smc_core.h
··· 539 539 540 540 void smc_conn_free(struct smc_connection *conn); 541 541 int smc_conn_create(struct smc_sock *smc, struct smc_init_info *ini); 542 - void smc_lgr_schedule_free_work_fast(struct smc_link_group *lgr); 543 542 int smc_core_init(void); 544 543 void smc_core_exit(void); 545 544
-1
net/smc/smc_ib.h
··· 96 96 int smc_ib_create_queue_pair(struct smc_link *lnk); 97 97 int smc_ib_ready_link(struct smc_link *lnk); 98 98 int smc_ib_modify_qp_rts(struct smc_link *lnk); 99 - int smc_ib_modify_qp_reset(struct smc_link *lnk); 100 99 int smc_ib_modify_qp_error(struct smc_link *lnk); 101 100 long smc_ib_setup_per_ibdev(struct smc_ib_device *smcibdev); 102 101 int smc_ib_get_memory_region(struct ib_pd *pd, int access_flags,