[PATCH] bonding: remove a warning with gcc 3

Linux Kernel Mailing List <[email protected]> Fri, 12 May 2006 18:59:44 GMT
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
commit 96349d47f0ee11eae1f892052a174cbaf819203e
tree 8bb094431d964b35304d653ce3fd1e3e59bf81a8
parent 429efe1830dfecd764a81d8c50718100219136ce
author Willy TARREAU <willy@pcw.(none)> Sun, 07 May 2006 21:35:47 +0200
committer Willy TARREAU <willy@pcw.(none)> Sun, 07 May 2006 21:35:47 +0200

[PATCH] bonding: remove a warning with gcc 3

GCC 3 emits a warning on bond_alb:1278 because of a deprecated way
to cast a pointer in an assignment. This trivial fix silents it.

Signed-off-by: Willy Tarreau <[email protected]>

- Willy

 drivers/net/bonding/bond_alb.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c
index 4be849f..d61b68a 100644
--- a/drivers/net/bonding/bond_alb.c
+++ b/drivers/net/bonding/bond_alb.c
@@ -1278,7 +1278,7 @@ void bond_alb_deinitialize(struct bondin
 int bond_alb_xmit(struct sk_buff *skb, struct net_device *bond_dev)
 {
 	struct bonding *bond = bond_dev->priv;
-	struct ethhdr *eth_data = (struct ethhdr *)skb->mac.raw = skb->data;
+	struct ethhdr *eth_data = (struct ethhdr *)(skb->mac.raw = skb->data);
 	struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
 	struct slave *tx_slave = NULL;
 	static u32 ip_bcast = 0xffffffff;