[PATCH][2.4.28-pre3] IEEE1394 driver core gcc-3.4 fixes

From: Mikael Pettersson
Date: Sun Sep 12 2004 - 06:44:33 EST


This patch fixes gcc-3.4 cast-as-lvalue warnings in the 2.4.28-pre3
kernel's IEEE1394 driver core. The changes are all backports from
the 2.6 kernel.

/Mikael

--- linux-2.4.28-pre3/drivers/ieee1394/highlevel.c.~1~ 2003-11-29 00:28:11.000000000 +0100
+++ linux-2.4.28-pre3/drivers/ieee1394/highlevel.c 2004-09-12 01:56:20.000000000 +0200
@@ -500,7 +500,7 @@
rcode = RCODE_TYPE_ERROR;
}

- (u8 *)data += partlength;
+ data += partlength;
length -= partlength;
addr += partlength;

@@ -546,7 +546,7 @@
rcode = RCODE_TYPE_ERROR;
}

- (u8 *)data += partlength;
+ data += partlength;
length -= partlength;
addr += partlength;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/