Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Phil Perry <pperry@elrepo.org>
To: wireguard@lists.zx2c4.com, "Jason A. Donenfeld" <Jason@wireguard.com>
Subject: compat: update for RHEL 8.7
Date: Thu, 10 Nov 2022 20:41:20 +0000	[thread overview]
Message-ID: <306f35dc-5101-35f0-a466-ee5cee758d07@elrepo.org> (raw)

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

Signed-off-by: Philip J. Perry <phil@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>


                 reply	other threads:[~2022-11-10 20:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=306f35dc-5101-35f0-a466-ee5cee758d07@elrepo.org \
    --to=pperry@elrepo.org \
    --cc=Jason@wireguard.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).