提交 a8bed49e 编写于 作者: S Stephen Hemminger 提交者: Jeff Garzik

[PATCH] forcedeth: le32 annotation

Use __le32 to indicate byte order of hardware ring elements
Signed-off-by: NStephen Hemminger <shemminger@osdl.org>

 drivers/net/forcedeth.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 f82a9352
......@@ -381,15 +381,15 @@ enum {
/* Big endian: should work, but is untested */
struct ring_desc {
u32 buf;
u32 flaglen;
__le32 buf;
__le32 flaglen;
};
struct ring_desc_ex {
u32 bufhigh;
u32 buflow;
u32 txvlan;
u32 flaglen;
__le32 bufhigh;
__le32 buflow;
__le32 txvlan;
__le32 flaglen;
};
union ring_type {
......@@ -653,8 +653,8 @@ static const struct nv_ethtool_str nv_etests_str[] = {
};
struct register_test {
u32 reg;
u32 mask;
__le32 reg;
__le32 mask;
};
static const struct register_test nv_registers_test[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册