Browse Source

be2net: fix sparse warnings in be_cmd_req_port_type{}

This patch fixes a sprase warnings regarding endian declarations introduced
by the following commit:

fixes: e36edd9 ("be2net: add ethtool "-m" option support")

Signed-off-by: Suresh Reddy <Suresh.Reddy@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Suresh Reddy 11 years ago
parent
commit
72d7e2bf8f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/net/ethernet/emulex/benet/be_cmds.h

+ 2 - 2
drivers/net/ethernet/emulex/benet/be_cmds.h

@@ -1005,8 +1005,8 @@ struct be_cmd_resp_link_status {
 /*    Identifies the type of port attached to NIC     */
 /*    Identifies the type of port attached to NIC     */
 struct be_cmd_req_port_type {
 struct be_cmd_req_port_type {
 	struct be_cmd_req_hdr hdr;
 	struct be_cmd_req_hdr hdr;
-	u32 page_num;
-	u32 port;
+	__le32 page_num;
+	__le32 port;
 };
 };
 
 
 enum {
 enum {