]> git.pld-linux.org Git - packages/igb.git/blobdiff - timespec64.patch
- change kernel version for timespec64 fix
[packages/igb.git] / timespec64.patch
index 8d211fbfabb1fe89b8f654564f42b739a94dae45..1ef501e419acfa3c0e0ad12373e0e1a80ffb7dde 100644 (file)
@@ -4,11 +4,11 @@
  }
  
  static int igb_ptp_gettime64_82576(struct ptp_clock_info *ptp,
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
                                 struct timespec *ts64)
 +#else
 +                               struct timespec64 *ts64)
-+#endof
++#endif
  {
        struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
                                               ptp_caps);
  }
  
  static int igb_ptp_gettime64_i210(struct ptp_clock_info *ptp,
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
                                struct timespec *ts64)
 +#else
 +                              struct timespec64 *ts64)
-+#endof
++#endif
  {
        struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
                                               ptp_caps);
  
  #ifdef HAVE_PTP_CLOCK_INFO_GETTIME64
  static int igb_ptp_settime64_82576(struct ptp_clock_info *ptp,
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
                                 const struct timespec *ts64)
 +#else
 +                               const struct timespec64 *ts64)
-+#endof
++#endif
  {
        struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
                                               ptp_caps);
  
  #endif
  static int igb_ptp_settime64_i210(struct ptp_clock_info *ptp,
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
                                const struct timespec *ts64)
 +#else
 +                              const struct timespec64 *ts64)
-+#endof
++#endif
  {
        struct igb_adapter *igb = container_of(ptp, struct igb_adapter,
                                               ptp_caps);
  {
        struct igb_adapter *igb =
                container_of(work, struct igb_adapter, ptp_overflow_work.work);
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
        struct timespec ts;
 +#else
 +      struct timespec64 ts;
-+#endof
++#endif
  
        igb_ptp_gettime64_82576(&igb->ptp_caps, &ts);
  
  
        /* Initialize the clock and overflow work for devices that need it. */
        if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) {
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
                struct timespec ts = ktime_to_timespec(ktime_get_real());
 +#else
 +              struct timespec64 ts = ktime_to_timespec64(ktime_get_real());
-+#endof
++#endif
  
                igb_ptp_settime64_i210(&adapter->ptp_caps, &ts);
        } else {
  
        /* Re-initialize the timer. */
        if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) {
-+#if ( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) )
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) )
                struct timespec ts = ktime_to_timespec(ktime_get_real());
 +#else
 +              struct timespec64 ts = ktime_to_timespec64(ktime_get_real());
-+#endof
++#endif
  
                igb_ptp_settime64_i210(&adapter->ptp_caps, &ts);
        } else {
This page took 0.098017 seconds and 4 git commands to generate.