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