Skip to content

Commit 7725610

Browse files
Peter Georgzx2c4
authored andcommitted
compat: update for RHEL 8.5
RHEL 8.5 has been released. Replace all ISCENTOS8S checks with ISRHEL8. Increase RHEL_MINOR for CentOS 8 Stream detection to 6. Signed-off-by: Peter Georg <peter.georg@physik.uni-regensburg.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent 8118c24 commit 7725610

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/compat/compat-asm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define ISRHEL7
1616
#elif RHEL_MAJOR == 8
1717
#define ISRHEL8
18-
#if RHEL_MINOR >= 4
18+
#if RHEL_MINOR >= 6
1919
#define ISCENTOS8S
2020
#endif
2121
#endif
@@ -51,7 +51,7 @@
5151
#undef pull
5252
#endif
5353

54-
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76) && !defined(ISCENTOS8S) && !defined(SYM_FUNC_START)
54+
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76) && !defined(ISRHEL8) && !defined(SYM_FUNC_START)
5555
#define SYM_FUNC_START ENTRY
5656
#define SYM_FUNC_END ENDPROC
5757
#endif

src/compat/compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define ISRHEL7
1717
#elif RHEL_MAJOR == 8
1818
#define ISRHEL8
19-
#if RHEL_MINOR >= 5
19+
#if RHEL_MINOR >= 6
2020
#define ISCENTOS8S
2121
#endif
2222
#endif
@@ -855,7 +855,7 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb)
855855
#endif
856856
#endif
857857

858-
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0) && !defined(ISCENTOS8S)
858+
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0) && !defined(ISRHEL8)
859859
#define genl_dumpit_info(cb) ({ \
860860
struct { struct nlattr **attrs; } *a = (void *)((u8 *)cb->args + offsetofend(struct dump_ctx, next_allowedip)); \
861861
BUILD_BUG_ON(sizeof(cb->args) < offsetofend(struct dump_ctx, next_allowedip) + sizeof(*a)); \

0 commit comments

Comments
 (0)