dpaa2-eth: fix a build warning in dpmac.c
Subsystems (3)
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
Signed-off-by Yangbo Lu <[email protected]>
---
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
@@ -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
From: Yangbo Lu <[email protected]>
Date: Fri, 18 Sep 2020 17:22:25 +0800
Quoted 4 lines
Fix below sparse warning in
dpmac.c.
warning: cast to restricted__le64Signed-off-by Yangbo Lu <[email protected]>
Applied.