]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
amd-xgbe: Use the u32 data type for descriptors
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Tue, 4 Nov 2014 22:06:37 +0000 (16:06 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Nov 2014 02:50:12 +0000 (21:50 -0500)
The Tx and Rx descriptors are unsigned 32 bit values.  Use the u32
type, rather than unsigned int, to map these descriptors.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe.h

index 0dc15d7c6ae12329ddb92437cfcd5570939a7506..19f1d9007a6d6a8ef15f36e5b16ece57d6413b09 100644 (file)
@@ -234,10 +234,10 @@ struct xgbe_packet_data {
 
 /* Common Rx and Tx descriptor mapping */
 struct xgbe_ring_desc {
-       unsigned int desc0;
-       unsigned int desc1;
-       unsigned int desc2;
-       unsigned int desc3;
+       u32 desc0;
+       u32 desc1;
+       u32 desc2;
+       u32 desc3;
 };
 
 /* Structure used to hold information related to the descriptor