diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2020-09-18 11:22:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-18 23:36:00 +0200 |
commit | a128592799b89d3985331d261fa4d41868ee4b04 (patch) | |
tree | 5799d84f3cbaa0a1f35e2b83bc45dd509a8e6603 /drivers | |
parent | net: hns: kerneldoc fixes (diff) | |
download | linux-a128592799b89d3985331d261fa4d41868ee4b04.tar.xz linux-a128592799b89d3985331d261fa4d41868ee4b04.zip |
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 <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h b/drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h index 3ea51dd9374b..a24b20f76938 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h +++ b/drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h @@ -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 */ |