Blame 0003-iscsi-tools-fix-compile-error-when-OFFLOAD_BOOT_SUPP.patch

0e55d5b
From d81fd4903cebb1d00aa48b0718d20e34b00dfde1 Mon Sep 17 00:00:00 2001
0e55d5b
From: Mike Christie <michaelc@cs.wisc.edu>
0e55d5b
Date: Wed, 26 Sep 2012 21:19:39 -0500
0e55d5b
Subject: iscsi tools: fix compile error when OFFLOAD_BOOT_SUPPORT defined
0e55d5b
0e55d5b
Fix compile error when OFFLOAD_BOOT_SUPPORT is defined and fix
0e55d5b
warning when it is defined.
0e55d5b
---
0e55d5b
 usr/iface.c | 3 ++-
0e55d5b
 1 file changed, 2 insertions(+), 1 deletion(-)
0e55d5b
0e55d5b
diff --git a/usr/iface.c b/usr/iface.c
0e55d5b
index 4028e34..4f81a76 100644
0e55d5b
--- a/usr/iface.c
0e55d5b
+++ b/usr/iface.c
0e55d5b
@@ -894,7 +894,6 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
0e55d5b
 				   struct boot_context *context)
0e55d5b
 {
0e55d5b
 	struct iscsi_transport *t = NULL;
0e55d5b
-	char transport_name[ISCSI_TRANSPORT_NAME_MAXLEN];
0e55d5b
 	uint32_t hostno;
0e55d5b
 
0e55d5b
 	if (strlen(context->initiatorname))
0e55d5b
@@ -910,6 +909,8 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
0e55d5b
 	} else if (strlen(context->iface)) {
0e55d5b
 /* this ifdef is only temp until distros and firmwares are updated */
0e55d5b
 #ifdef OFFLOAD_BOOT_SUPPORTED
0e55d5b
+		char transport_name[ISCSI_TRANSPORT_NAME_MAXLEN];
0e55d5b
+		int rc;
0e55d5b
 
0e55d5b
 		memset(transport_name, 0, ISCSI_TRANSPORT_NAME_MAXLEN);
0e55d5b
 		/* make sure offload driver is loaded */
0e55d5b
-- 
0e55d5b
1.7.11.7
0e55d5b