Skip to content

Commit a128592

Browse files
yangbolu1991davem330
authored andcommitted
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>
1 parent a3a9415 commit a128592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ struct dpmac_cmd_get_counter {
6666
};
6767

6868
struct dpmac_rsp_get_counter {
69-
u64 pad;
70-
u64 counter;
69+
__le64 pad;
70+
__le64 counter;
7171
};
7272

7373
#endif /* _FSL_DPMAC_CMD_H */

0 commit comments

Comments
 (0)