提交 5226cfc5 编写于 作者: L Lendacky, Thomas 提交者: David S. Miller

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: NTom Lendacky <thomas.lendacky@amd.com>
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 824ab782
...@@ -246,10 +246,10 @@ struct xgbe_packet_data { ...@@ -246,10 +246,10 @@ struct xgbe_packet_data {
/* Common Rx and Tx descriptor mapping */ /* Common Rx and Tx descriptor mapping */
struct xgbe_ring_desc { struct xgbe_ring_desc {
u32 desc0; __le32 desc0;
u32 desc1; __le32 desc1;
u32 desc2; __le32 desc2;
u32 desc3; __le32 desc3;
}; };
/* Page allocation related values */ /* Page allocation related values */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册