summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Georg <peter.georg@physik.uni-regensburg.de>2021-04-19 22:51:25 +0200
committerMichael Bestas <mkbestas@lineageos.org>2021-07-23 02:44:13 +0300
commit34b05b3805e198382ff82dbe622950142aec343b (patch)
treed62fb0228d54b378884f861d449c9559ac30f744
parent14e89d1908c35d80844ec6adbac1f291ff00d205 (diff)
compat: update and improve detection of CentOS Stream 8
CentOS Stream 8 by now (4.18.0-301.1.el8) reports RHEL_MINOR=5. The current RHEL 8 minor release is still 3. RHEL 8.4 is in beta. Replace equal comparison by greater equal to (hopefully) be a little bit more future proof. Signed-off-by: Peter Georg <peter.georg@physik.uni-regensburg.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Change-Id: I94a227b5bfcfe7bb7cbadd9caac5d7b5b3f0fd7d
-rw-r--r--drivers/net/wireguard/compat/compat-asm.h2
-rw-r--r--drivers/net/wireguard/compat/compat.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireguard/compat/compat-asm.h b/drivers/net/wireguard/compat/compat-asm.h
index 7067afd9b5e1..fde21dabba4f 100644
--- a/drivers/net/wireguard/compat/compat-asm.h
+++ b/drivers/net/wireguard/compat/compat-asm.h
@@ -15,7 +15,7 @@
#define ISRHEL7
#elif RHEL_MAJOR == 8
#define ISRHEL8
-#if RHEL_MINOR == 4
+#if RHEL_MINOR >= 4
#define ISCENTOS8S
#endif
#endif
diff --git a/drivers/net/wireguard/compat/compat.h b/drivers/net/wireguard/compat/compat.h
index 022720420e81..26a6d7ec2d6b 100644
--- a/drivers/net/wireguard/compat/compat.h
+++ b/drivers/net/wireguard/compat/compat.h
@@ -16,7 +16,7 @@
#define ISRHEL7
#elif RHEL_MAJOR == 8
#define ISRHEL8
-#if RHEL_MINOR == 4
+#if RHEL_MINOR >= 4
#define ISCENTOS8S
#endif
#endif