[PATCH][2.4.28-pre3] PPC32 PReP residual data gcc-3.4 fix

From: Mikael Pettersson
Date: Sun Sep 12 2004 - 15:08:53 EST


This patch fixes a gcc-3.4 cast-as-lvalue warning in the 2.4.28-pre3
kernel's arch/ppc/platform/residual.c. The change is a backport from
the 2.6 kernel.

/Mikael

--- linux-2.4.28-pre3/arch/ppc/platforms/residual.c.~1~ 2003-08-25 20:07:42.000000000 +0200
+++ linux-2.4.28-pre3/arch/ppc/platforms/residual.c 2004-09-12 21:32:52.000000000 +0200
@@ -493,7 +493,7 @@
size=tag_small_count(pkt->S1_Pack.Tag)+1;
printsmallpacket(pkt, size);
}
- (unsigned char *) pkt+=size;
+ pkt = (PnP_TAG_PACKET *)((unsigned char *) pkt + size);
} while (pkt->S1_Pack.Tag != END_TAG);
}

-
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/