amd-xgbe: Fix sparse endian warnings
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 12 Nov 2014 16:37:49 +0000 (10:37 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2014 20:10:23 +0000 (15:10 -0500)
Change the types of the descriptor entries in the xgbe_ring_desc struct
from u32 to __le32 to fix endian warnings issued by sparse.

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

index aa8da9f4f1f9ff874a4fb67a6285b77497c426b2..901fb1fe5d0d112324fe890942ee3d893079b5e1 100644 (file)
@@ -246,10 +246,10 @@ struct xgbe_packet_data {
 
 /* Common Rx and Tx descriptor mapping */
 struct xgbe_ring_desc {
-       u32 desc0;
-       u32 desc1;
-       u32 desc2;
-       u32 desc3;
+       __le32 desc0;
+       __le32 desc1;
+       __le32 desc2;
+       __le32 desc3;
 };
 
 /* Page allocation related values */