Skip to contentSkip to conversation

dpaa2-eth: fix a build warning in dpmac.c

PATCH Applied Yangbo Lu 2 participants 2 messages Sep 18, 2020

Subsystems (3)
lore
Share & tools
lore

Yangbo Lu

author
#0 lore raw

PATCH v2 1/1 dpaa2-eth: fix a build warning in dpmac.c

Fix below sparse warning in dpmac.c.
warning: cast to restricted __le64

---
Changes for v2:
- Fixed in right way.

---
 drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h +2 -2
index 3ea51dd..a24b20f 100644
@@ -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 */
Signature · 1 line
2.7.4