[Stgt-devel] [PATCH] iscsi-tcp: warnings

Pete Wyckoff pw
Wed Dec 26 21:44:07 CET 2007


Remove duplicate transport entries.  Make alloc_task static.

Signed-off-by: Pete Wyckoff <pw at osc.edu>
---
 usr/iscsi/iscsi_tcp.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/usr/iscsi/iscsi_tcp.c b/usr/iscsi/iscsi_tcp.c
index 1e818a0..c4d08a1 100644
--- a/usr/iscsi/iscsi_tcp.c
+++ b/usr/iscsi/iscsi_tcp.c
@@ -306,7 +306,7 @@ static void iscsi_event_modify(struct iscsi_connection *conn, int events)
 		eprintf("tgt_event_modify failed\n");
 }
 
-struct iscsi_task *iscsi_tcp_alloc_task(struct iscsi_connection *conn,
+static struct iscsi_task *iscsi_tcp_alloc_task(struct iscsi_connection *conn,
 					size_t ext_len)
 {
 	struct iscsi_task *task;
@@ -364,8 +364,6 @@ static struct iscsi_transport iscsi_tcp = {
 	.ep_release		= iscsi_tcp_release,
 	.ep_show		= iscsi_tcp_show,
 	.ep_event_modify	= iscsi_event_modify,
-	.alloc_task		= iscsi_tcp_alloc_task,
-	.free_task		= iscsi_tcp_free_task,
 	.alloc_data_buf		= iscsi_tcp_alloc_data_buf,
 	.free_data_buf		= iscsi_tcp_free_data_buf,
 	.ep_getsockname		= iscsi_tcp_getsockname,
-- 
1.5.3.6




More information about the stgt mailing list