Skip to content

Commit

Permalink
dpaa2-eth: fix a build warning in dpmac.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yangbo Lu authored and David S. Miller committed Sep 18, 2020
1 parent a3a9415 commit a128592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit a128592

Please sign in to comment.