Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f3f0e36 authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller
Browse files

net/smc: make smc_lgr_free() static



smc_lgr_free() is just called inside smc_core.c. Make it static.
Just cleanup, no functional change.

Signed-off-by: default avatarUrsula Braun <ubraun@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 263ffaee
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -149,6 +149,8 @@ static int smc_link_send_delete(struct smc_link *lnk)
	return -ENOTCONN;
	return -ENOTCONN;
}
}


static void smc_lgr_free(struct smc_link_group *lgr);

static void smc_lgr_free_work(struct work_struct *work)
static void smc_lgr_free_work(struct work_struct *work)
{
{
	struct smc_link_group *lgr = container_of(to_delayed_work(work),
	struct smc_link_group *lgr = container_of(to_delayed_work(work),
@@ -408,7 +410,7 @@ static void smc_lgr_free_bufs(struct smc_link_group *lgr)
}
}


/* remove a link group */
/* remove a link group */
void smc_lgr_free(struct smc_link_group *lgr)
static void smc_lgr_free(struct smc_link_group *lgr)
{
{
	smc_lgr_free_bufs(lgr);
	smc_lgr_free_bufs(lgr);
	if (lgr->is_smcd)
	if (lgr->is_smcd)
+0 −1
Original line number Original line Diff line number Diff line
@@ -243,7 +243,6 @@ struct smc_sock;
struct smc_clc_msg_accept_confirm;
struct smc_clc_msg_accept_confirm;
struct smc_clc_msg_local;
struct smc_clc_msg_local;


void smc_lgr_free(struct smc_link_group *lgr);
void smc_lgr_forget(struct smc_link_group *lgr);
void smc_lgr_forget(struct smc_link_group *lgr);
void smc_lgr_terminate(struct smc_link_group *lgr);
void smc_lgr_terminate(struct smc_link_group *lgr);
void smc_port_terminate(struct smc_ib_device *smcibdev, u8 ibport);
void smc_port_terminate(struct smc_ib_device *smcibdev, u8 ibport);