summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/amd
diff options
context:
space:
mode:
authorLendacky, Thomas <Thomas.Lendacky@amd.com>2014-11-12 10:37:49 -0600
committerDavid S. Miller <davem@davemloft.net>2014-11-12 15:10:23 -0500
commit5226cfc500022104d92813ee218608e80f56ead6 (patch)
tree280d6f215468682909825d548bd9961bf46beb2f /drivers/net/ethernet/amd
parent824ab78215c51429a2b0e17356a00a59e4e91a9a (diff)
amd-xgbe: Fix sparse endian warnings
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>
Diffstat (limited to 'drivers/net/ethernet/amd')
-rw-r--r--drivers/net/ethernet/amd/xgbe/xgbe.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe.h b/drivers/net/ethernet/amd/xgbe/xgbe.h
index aa8da9f4f1f9..901fb1fe5d0d 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe.h
+++ b/drivers/net/ethernet/amd/xgbe/xgbe.h
@@ -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 */