Patchwork [3/7] bonding: fix compile error if debug enabled

login
register
mail settings
Submitter holger@eitzenberger.org
Date Dec. 9, 2008, 8:07 p.m.
Message ID <20081209201447.431916236@eitzenberger.org>
Download mbox | patch
Permalink /patch/13038/
State Accepted
Delegated to: David Miller
Headers show

Comments

holger@eitzenberger.org - Dec. 9, 2008, 8:07 p.m.
This is what I get if debug is enabled:

drivers/net/bonding/bond_ipv6.c: In function 'bond_na_send':
drivers/net/bonding/bond_ipv6.c:75: error: 'slave' undeclared (first use in this function)
drivers/net/bonding/bond_ipv6.c:75: error: (Each undeclared identifier is reported only once
drivers/net/bonding/bond_ipv6.c:75: error: for each function it appears in.)

This patch fixes that.

Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
David Miller - Dec. 10, 2008, 7:09 a.m.
From: holger@eitzenberger.org
Date: Tue, 09 Dec 2008 21:07:53 +0100

> This is what I get if debug is enabled:
> 
> drivers/net/bonding/bond_ipv6.c: In function 'bond_na_send':
> drivers/net/bonding/bond_ipv6.c:75: error: 'slave' undeclared (first use in this function)
> drivers/net/bonding/bond_ipv6.c:75: error: (Each undeclared identifier is reported only once
> drivers/net/bonding/bond_ipv6.c:75: error: for each function it appears in.)
> 
> This patch fixes that.
> 
> Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

Index: bonding-2.6/drivers/net/bonding/bond_ipv6.c
===================================================================
--- bonding-2.6.orig/drivers/net/bonding/bond_ipv6.c	2008-12-05 23:13:47.000000000 +0100
+++ bonding-2.6/drivers/net/bonding/bond_ipv6.c	2008-12-05 23:13:59.000000000 +0100
@@ -75,7 +75,7 @@ 
 	addrconf_addr_solict_mult(daddr, &mcaddr);
 
 	dprintk("ipv6 na on slave %s: dest %pI6, src %pI6\n",
-	       slave->name, &mcaddr, daddr);
+	       slave_dev->name, &mcaddr, daddr);
 
 	skb = ndisc_build_skb(slave_dev, &mcaddr, daddr, &icmp6h, daddr,
 			      ND_OPT_TARGET_LL_ADDR);