projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3a9415
)
dpaa2-eth: fix a build warning in dpmac.c
author
Yangbo Lu
<yangbo.lu@nxp.com>
Fri, 18 Sep 2020 09:22:25 +0000
(17:22 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 18 Sep 2020 21:36:00 +0000
(14:36 -0700)
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>
drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h
b/drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h
index
3ea51dd
..
a24b20f
100644
(file)
--- 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 {
-
u
64 pad;
-
u
64 counter;
+
__le
64 pad;
+
__le
64 counter;
};
#endif /* _FSL_DPMAC_CMD_H */