dpaa2-eth: fix a build warning in dpmac.c
authorYangbo Lu <yangbo.lu@nxp.com>
Fri, 18 Sep 2020 09:22:25 +0000 (17:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 21:36:00 +0000 (14:36 -0700)
Fix below sparse warning in dpmac.c.
warning: cast to restricted __le64

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h

index 3ea51dd..a24b20f 100644 (file)
@@ -66,8 +66,8 @@ struct dpmac_cmd_get_counter {
 };
 
 struct dpmac_rsp_get_counter {
-       u64 pad;
-       u64 counter;
+       __le64 pad;
+       __le64 counter;
 };
 
 #endif /* _FSL_DPMAC_CMD_H */