be2net: fix sparse warnings in be_cmd_req_port_type{}
authorSuresh Reddy <Suresh.Reddy@emulex.com>
Fri, 19 Sep 2014 10:16:52 +0000 (15:46 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Sep 2014 19:01:07 +0000 (15:01 -0400)
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>
drivers/net/ethernet/emulex/benet/be_cmds.h

index e86a5ef439dd4772a2df9d593b867fd915e0c737..b064c502287e216480d7926e1a4584f165e89c0e 100644 (file)
@@ -1005,8 +1005,8 @@ struct be_cmd_resp_link_status {
 /*    Identifies the type of port attached to NIC     */
 struct be_cmd_req_port_type {
        struct be_cmd_req_hdr hdr;
-       u32 page_num;
-       u32 port;
+       __le32 page_num;
+       __le32 port;
 };
 
 enum {