From 5226cfc500022104d92813ee218608e80f56ead6 Mon Sep 17 00:00:00 2001 From: "Lendacky, Thomas" Date: Wed, 12 Nov 2014 10:37:49 -0600 Subject: [PATCH] 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 Reported-by: Dan Carpenter Signed-off-by: David S. Miller --- drivers/net/ethernet/amd/xgbe/xgbe.h | 8 ++++---- 1 file 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 */ -- 2.20.1