From: Breno Leitao <leitao@linux.vnet.ibm.com>
To: Harvey Harrison <harvey.harrison@gmail.com>
Cc: David Miller <davem@davemloft.net>,
Roland Dreier <rdreier@cisco.com>,
linux-netdev <netdev@vger.kernel.org>
Subject: [PATCH 1/1 net-next]
Date: Tue, 17 Feb 2009 11:08:41 -0300 [thread overview]
Message-ID: <499AC4E9.7090307@linux.vnet.ibm.com> (raw)
In-Reply-To: <1231651594.5714.65.camel@brick>
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@linux.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
next prev parent reply other threads:[~2009-02-17 14:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-11 5:26 [PATCH] infiniband: fix for NIPQUAD removal Harvey Harrison
2009-01-11 5:46 ` Roland Dreier
2009-02-17 14:08 ` Breno Leitao [this message]
2009-02-17 14:13 ` [PATCH 1/1 net-next] Fix infiniband warnings Breno Leitao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=499AC4E9.7090307@linux.vnet.ibm.com \
--to=leitao@linux.vnet.ibm.com \
--cc=davem@davemloft.net \
--cc=harvey.harrison@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=rdreier@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.