[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <499AC4E9.7090307@linux.vnet.ibm.com>
Date: Tue, 17 Feb 2009 11:08:41 -0300
From: Breno Leitao <leitao@...ux.vnet.ibm.com>
To: Harvey Harrison <harvey.harrison@...il.com>
CC: David Miller <davem@...emloft.net>,
Roland Dreier <rdreier@...co.com>,
linux-netdev <netdev@...r.kernel.org>
Subject: [PATCH 1/1 net-next]
Commit 03080e5cbe0222744173d3e726f6ba5d13b7f04e is causing some warning
during compilation.
tmp_addr is an unused variable if CONFIG_INFINIBAND_NES_DEBUG is
not used. Causing the following Warning.
drivers/infiniband/hw/nes/nes_cm.c: In function ‘find_node’:
drivers/infiniband/hw/nes/nes_cm.c:781: warning: unused variable ‘tmp_addr’
drivers/infiniband/hw/nes/nes_cm.c: In function ‘find_listener’:
drivers/infiniband/hw/nes/nes_cm.c:820: warning: unused variable ‘tmp_addr’
Signed-off-by: Breno Leitao <leitao@...ux.vnet.ibm.com>
---
drivers/infiniband/hw/nes/nes_cm.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index a01b448..2b34859 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -778,7 +778,9 @@ static struct nes_cm_node *find_node(struct nes_cm_core *cm_core,
unsigned long flags;
struct list_head *hte;
struct nes_cm_node *cm_node;
+#ifdef CONFIG_INFINIBAND_NES_DEBUG
__be32 tmp_addr = cpu_to_be32(loc_addr);
+#endif
/* get a handle on the hte */
hte = &cm_core->connected_nodes;
@@ -817,7 +819,9 @@ static struct nes_cm_listener *find_listener(struct nes_cm_core *cm_core,
{
unsigned long flags;
struct nes_cm_listener *listen_node;
+#ifdef CONFIG_INFINIBAND_NES_DEBUG
__be32 tmp_addr = cpu_to_be32(dst_addr);
+#endif
/* walk list and find cm_node associated with this session ID */
spin_lock_irqsave(&cm_core->listen_list_lock, flags);
--
1.6.0.2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists