]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: use unaligned conversion for fetching timestamp
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Tue, 23 Jun 2020 20:21:33 +0000 (01:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2020 22:18:47 +0000 (15:18 -0700)
commitd73ce3ba6a9d30b67845baf8e289370ecf6bc81d
treea81392b146aeeae7bec3335f49a393dcc832085e
parente649c21771bb55d811752757743a8ae8ad3d9680
cxgb4: use unaligned conversion for fetching timestamp

Use get_unaligned_be64() to fetch the timestamp needed for ns_to_ktime()
conversion.

Fixes following sparse warning:
sge.c:3282:43: warning: cast to restricted __be64

Fixes: bee8584e4ac0 ("cxgb4: time stamping interface for PTP")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c