Title: [6496] trunk/drivers/net/bfin_mac.c: netdev feedback from David Miller:
- Revision
- 6496
- Author
- hennerich
- Date
- 2009-05-29 04:16:26 -0500 (Fri, 29 May 2009)
Log Message
netdev feedback from David Miller:
A pointer is not castable directly to a u32 everywhere.
It can be 64-bits and in which case GCC will warn here.
Use "unsigned long" or similar.
Modified Paths
Diff
Modified: trunk/drivers/net/bfin_mac.c (6495 => 6496)
--- trunk/drivers/net/bfin_mac.c 2009-05-27 13:16:53 UTC (rev 6495)
+++ trunk/drivers/net/bfin_mac.c 2009-05-29 09:16:26 UTC (rev 6496)
@@ -617,7 +617,7 @@
struct net_device *dev)
{
u16 *data;
- u32 data_align = (u32)(skb->data) & 0x3;
+ u32 data_align = (unsigned long)(skb->data) & 0x3;
current_tx_ptr->skb = skb;
if (data_align == 0x2) {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits