commit 3b65f4af900c9910cafae4eed8e24b9a01667c00
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Nov 16 17:58:43 2022 +0100
Backport patch
...ot-backport-ktime_get_coarse_boottime_ns-.patch | 41 ++++++++++++++++++++++
1 file changed, 41 insertions(+)
---
diff --git a/compat-do-not-backport-ktime_get_coarse_boottime_ns-.patch
b/compat-do-not-backport-ktime_get_coarse_boottime_ns-.patch
new file mode 100644
index 0000000..ec4242e
--- /dev/null
+++ b/compat-do-not-backport-ktime_get_coarse_boottime_ns-.patch
@@ -0,0 +1,41 @@
+From 99935b07b48a2ff696d64996277d89efe8242d37 Mon Sep 17 00:00:00 2001
+From: "Jason A. Donenfeld" <Jason(a)zx2c4.com>
+Date: Tue, 28 Jun 2022 12:43:06 +0200
+Subject: [PATCH] compat: do not backport ktime_get_coarse_boottime_ns to c8s
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Also bump the c8s version stamp.
+
+Reported-by: Vladimír Beneš <vbenes(a)redhat.com>
+Signed-off-by: Jason A. Donenfeld <Jason(a)zx2c4.com>
+---
+ src/compat/compat.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/compat/compat.h b/src/compat/compat.h
+index d166ac235a99..aebeabf10741 100644
+--- a/src/compat/compat.h
++++ b/src/compat/compat.h
+@@ -16,7 +16,7 @@
+ #define ISRHEL7
+ #elif RHEL_MAJOR == 8
+ #define ISRHEL8
+-#if RHEL_MINOR >= 6
++#if RHEL_MINOR >= 7
+ #define ISCENTOS8S
+ #endif
+ #endif
+@@ -390,7 +390,7 @@ static inline int get_random_bytes_wait(void *buf, int nbytes)
+ #define system_power_efficient_wq system_unbound_wq
+ #endif
+
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0) && !defined(ISCENTOS8S)
+ #include <linux/ktime.h>
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
+ #include <linux/hrtimer.h>
+--
+2.38.1
+
Show replies by date