1 --- igb-5.3.2/src/igb_ptp.c~ 2015-05-26 23:59:51.000000000 +0200
2 +++ igb-5.3.2/src/igb_ptp.c 2015-06-29 08:05:18.930401431 +0200
6 static int igb_ptp_gettime64_82576(struct ptp_clock_info *ptp,
7 - struct timespec *ts64)
8 + struct timespec64 *ts64)
10 struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
15 static int igb_ptp_gettime64_i210(struct ptp_clock_info *ptp,
16 - struct timespec *ts64)
17 + struct timespec64 *ts64)
19 struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
23 #ifdef HAVE_PTP_CLOCK_INFO_GETTIME64
24 static int igb_ptp_settime64_82576(struct ptp_clock_info *ptp,
25 - const struct timespec *ts64)
26 + const struct timespec64 *ts64)
28 struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
33 static int igb_ptp_settime64_i210(struct ptp_clock_info *ptp,
34 - const struct timespec *ts64)
35 + const struct timespec64 *ts64)
37 struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
41 struct igb_adapter *igb =
42 container_of(work, struct igb_adapter, ptp_overflow_work.work);
44 + struct timespec64 ts;
46 igb_ptp_gettime64_82576(&igb->ptp_caps, &ts);
50 /* Initialize the clock and overflow work for devices that need it. */
51 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) {
52 - struct timespec ts = ktime_to_timespec(ktime_get_real());
53 + struct timespec ts64 = ktime_to_timespec64(ktime_get_real());
55 igb_ptp_settime64_i210(&adapter->ptp_caps, &ts);
59 /* Re-initialize the timer. */
60 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) {
61 - struct timespec ts = ktime_to_timespec(ktime_get_real());
62 + struct timespec64 ts = ktime_to_timespec64(ktime_get_real());
64 igb_ptp_settime64_i210(&adapter->ptp_caps, &ts);