[ewg] [PATCH 6/8 warnings] IPoIB warning

Jeremy Brown jeremy.brown at qlogic.com
Fri Oct 5 16:47:54 PDT 2007


Tziporet, Vlad,

I've included the sixth of the eight warning fix patches. Please note
that this one only applies on kernels up to and including 2.6.16.

Thanks!

Jeremy Brown

---

Move declaration up to avoid compiler warning.

Signed-off-by: John Gregor <john.gregor at qlogic.com>

diff -r f01d968d5f18 drivers/infiniband/ulp/ipoib/ipoib_main.c
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c	Mon Jun 18 15:57:12 2007 -0700
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c	Mon Jun 18 16:04:29 2007 -0700
@@ -849,6 +849,7 @@ static void ipoib_neigh_destructor(struc
 	struct ipoib_dev_priv *priv = netdev_priv(n->dev);
 	unsigned long flags;
 	struct ipoib_ah *ah = NULL;
+	struct ipoib_neigh *tn, *nn = NULL;
 
         if (n->dev->type != ARPHRD_INFINIBAND)
                 return;
@@ -864,7 +865,6 @@ static void ipoib_neigh_destructor(struc
 			return;
 	}
 
-	struct ipoib_neigh *tn, *nn = NULL;
 	spin_lock_irqsave(&ipoib_all_neigh_list_lock, flags);
 	list_for_each_entry(tn, &ipoib_all_neigh_list, all_neigh_list)
 		if (tn->neighbour == n) {





More information about the ewg mailing list