compat: update for RHEL 8.7

Phil Perry pperry at elrepo.org
Thu Nov 10 20:41:20 UTC 2022


Update for release of RHEL 8.7, which now backports 
ktime_get_coarse_boottime_ns()

Signed-off-by: Philip J. Perry <phil at elrepo.org>


diff -Naurp wireguard-linux-compat-1.0.20220627.orig/src/compat/compat.h 
wireguard-linux-compat-1.0.20220627/src/compat/compat.h
--- a/src/compat/compat.h        2022-06-27 11:54:37.000000000 +0100
+++ b/src/compat/compat.h     2022-11-10 19:55:49.653581044 +0000
@@ -16,7 +16,7 @@
  #define ISRHEL7
  #elif RHEL_MAJOR == 8
  #define ISRHEL8
-#if RHEL_MINOR >= 6
+#if RHEL_MINOR >= 7
  #define ISCENTOS8S
  #endif
  #endif
@@ -412,6 +412,7 @@ static inline u64 __compat_jiffies64_to_
  }
  #define jiffies64_to_nsecs __compat_jiffies64_to_nsecs
  #endif
+#if !defined(ISRHEL8)
  static inline u64 ktime_get_coarse_boottime_ns(void)
  {
  #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
@@ -423,6 +424,7 @@ static inline u64 ktime_get_coarse_boott
  #endif
  }
  #endif
+#endif

  #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)
  #include <linux/inetdevice.h>



More information about the WireGuard mailing list