From 7912aa4a176a4f9ea783b1f9debde3e420d48ca4 Mon Sep 17 00:00:00 2001 From: Tsuyoshi Uchida Date: Mon, 13 Feb 2017 08:57:37 -0800 Subject: [PATCH] iscsi: move extern g_conn_array to conn.h (#111) --- lib/iscsi/conn.h | 2 ++ lib/iscsi/iscsi_rpc.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iscsi/conn.h b/lib/iscsi/conn.h index 1d088bf4b..ee6ead2ea 100644 --- a/lib/iscsi/conn.h +++ b/lib/iscsi/conn.h @@ -162,6 +162,8 @@ struct spdk_iscsi_conn { TAILQ_HEAD(queued_datain_tasks, spdk_iscsi_task) queued_datain_tasks; }; +extern struct spdk_iscsi_conn *g_conns_array; + int spdk_initialize_iscsi_conns(void); void spdk_shutdown_iscsi_conns(void); diff --git a/lib/iscsi/iscsi_rpc.c b/lib/iscsi/iscsi_rpc.c index cc57db8f3..a594fd1c0 100644 --- a/lib/iscsi/iscsi_rpc.c +++ b/lib/iscsi/iscsi_rpc.c @@ -42,8 +42,6 @@ #include "spdk_internal/log.h" -extern struct spdk_iscsi_conn *g_conns_array; // TODO: move this to an internal iSCSI header - static void spdk_rpc_get_initiator_groups(struct spdk_jsonrpc_server_conn *conn, const struct spdk_json_val *params,