* [PATCH][2.4.28-pre3] bonding "alb" driver gcc-3.4 fix
@ 2004-09-12 11:32 Mikael Pettersson
0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2004-09-12 11:32 UTC (permalink / raw)
To: marcelo, shmulik.hen; +Cc: linux-kernel
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
*/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-12 11:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-12 11:32 [PATCH][2.4.28-pre3] bonding "alb" driver gcc-3.4 fix Mikael Pettersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).