From d4d03a5ecfe4a0e7b0541d493f19f8df763a1635 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Tue, 6 Mar 2018 15:39:16 +0800 Subject: [PATCH] lib/iscsi: Make spdk_iscsi_conn_destruct a static function Change-Id: I044a9980454cf9a0719477e606df104f377b3b43 Signed-off-by: Ziye Yang Reviewed-on: https://review.gerrithub.io/402642 Tested-by: SPDK Automated Test System Reviewed-by: Shuhei Matsumoto Reviewed-by: Daniel Verkamp --- lib/iscsi/conn.c | 3 ++- lib/iscsi/conn.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index f407c7caf..d0d6e23de 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -512,7 +512,8 @@ _spdk_iscsi_conn_check_shutdown(void *arg) _spdk_iscsi_conn_free(conn); } -void spdk_iscsi_conn_destruct(struct spdk_iscsi_conn *conn) +static void +spdk_iscsi_conn_destruct(struct spdk_iscsi_conn *conn) { struct spdk_iscsi_tgt_node *target; int rc; diff --git a/lib/iscsi/conn.h b/lib/iscsi/conn.h index 59fdcd452..7bea7d0c5 100644 --- a/lib/iscsi/conn.h +++ b/lib/iscsi/conn.h @@ -173,7 +173,6 @@ int spdk_initialize_iscsi_conns(void); void spdk_shutdown_iscsi_conns(void); int spdk_iscsi_conn_construct(struct spdk_iscsi_portal *portal, struct spdk_sock *sock); -void spdk_iscsi_conn_destruct(struct spdk_iscsi_conn *conn); void spdk_iscsi_conn_handle_nop(struct spdk_iscsi_conn *conn); void spdk_iscsi_conn_logout(struct spdk_iscsi_conn *conn); int spdk_iscsi_drop_conns(struct spdk_iscsi_conn *conn,