diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-06-15 01:13:41 +0200 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2023-11-06 09:28:24 +0000 |
commit | b75b9ec298d562e642b6f55cf9ebfe3014c0c1be (patch) | |
tree | bb0d1cc2e4ce2da2111ae0e2810eade2d219540e /drivers/net/wireguard/compat/compat.h | |
parent | 35e547e3394b364e34b4fc293de21adbbbc6b2de (diff) |
compat: account for latest c8s backports
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Change-Id: I6136ba1913ddd726e49405a05c70aeb8955d3234
Diffstat (limited to 'drivers/net/wireguard/compat/compat.h')
-rw-r--r-- | drivers/net/wireguard/compat/compat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireguard/compat/compat.h b/drivers/net/wireguard/compat/compat.h index 91d4388824ea..b2041327d85c 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 >= 5 #define ISCENTOS8S #endif #endif @@ -757,7 +757,7 @@ static inline void crypto_xor_cpy(u8 *dst, const u8 *src1, const u8 *src2, #define hlist_add_behind(a, b) hlist_add_after(b, a) #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) && !defined(ISCENTOS8S) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) && !defined(ISRHEL8) #define totalram_pages() totalram_pages #endif @@ -849,7 +849,7 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb) #endif #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0) && !defined(ISCENTOS8S) #define genl_dumpit_info(cb) ({ \ struct { struct nlattr **attrs; } *a = (void *)((u8 *)cb->args + offsetofend(struct dump_ctx, next_allowedip)); \ BUILD_BUG_ON(sizeof(cb->args) < offsetofend(struct dump_ctx, next_allowedip) + sizeof(*a)); \ |