]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: fix timespec64_to_ns typo
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Oct 2017 09:48:31 +0000 (11:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2017 17:18:38 +0000 (10:18 -0700)
commit5c183566a07952a15421a71f32079a165d446666
tree0783e0fb208a7163835f21e11288de7c6aa0a9bd
parentc7a57be94a3423d39eed8d9d7bd60dc83958bd3a
liquidio: fix timespec64_to_ns typo

While experimenting with changes to the timekeeping code, I
ran into a build error in the liquidio driver:

drivers/net/ethernet/cavium/liquidio/lio_main.c: In function 'liquidio_ptp_settime':
drivers/net/ethernet/cavium/liquidio/lio_main.c:1850:22: error: passing argument 1 of 'timespec_to_ns' from incompatible pointer type [-Werror=incompatible-pointer-types]

The driver had a type mismatch since it was first merged, but
this never caused problems because it is only built on 64-bit
architectures that define timespec and timespec64 to the same
type.

If we ever want to compile-test the driver on 32-bit or change
the way that 64-bit timespec64 is defined, we need to fix it,
so let's just do it now.

Fixes: 3fbbaec12d26 ("Add support of Cavium Liquidio ethernet adapters")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c