Messages in this thread Patch in this message | | | Date | Sun, 12 Sep 2004 13:32:59 +0200 (MEST) | From | Mikael Pettersson <> | Subject | [PATCH][2.4.28-pre3] bonding "alb" driver gcc-3.4 fix |
| |
This patch fixes a gcc-3.4 cast-as-lvalue warning in the 2.4.28-pre3 kernel's ethernet bonding "alb" driver. The change is a backport from the 2.6 kernel.
/Mikael
--- linux-2.4.28-pre3/drivers/net/bonding/bond_alb.c.~1~ 2004-04-14 20:22:20.000000000 +0200 +++ linux-2.4.28-pre3/drivers/net/bonding/bond_alb.c 2004-09-12 01:56:20.000000000 +0200 @@ -1275,7 +1275,7 @@ 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 alb_bond_info *bond_info = &(BOND_ALB_INFO(bond)); struct slave *tx_slave = NULL; static u32 ip_bcast = 0xffffffff; @@ -1285,6 +1285,9 @@ u8 *hash_start = NULL; int res = 1; + skb->mac.raw = (unsigned char *)skb->data; + eth_data = (struct ethhdr *)skb->data; + /* make sure that the curr_active_slave and the slaves list do * not change during tx */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |