From: Holger Eitzenberger Date: Wed, 10 Dec 2008 07:08:55 +0000 (-0800) Subject: bonding: fix compile error if debug enabled X-Git-Tag: v2.6.29-rc1~581^2~267 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ef65583d01f4060c758dba72f08edc09d8faa719;p=linux-2.6-omap-h63xx.git bonding: fix compile error if debug enabled 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_ipv6.c b/drivers/net/bonding/bond_ipv6.c index 7c78b7bf671..11581da5d93 100644 --- a/drivers/net/bonding/bond_ipv6.c +++ b/drivers/net/bonding/bond_ipv6.c @@ -75,7 +75,7 @@ static void bond_na_send(struct net_device *slave_dev, 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);