From d3da391be8a9fc8c0fe2318850e7f1643e31679d Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Wed, 27 Dec 2023 20:49:36 +0300 Subject: [PATCH] scst/include/backport.h: Unbreak the RHEL 8.9 build --- scst/include/backport.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 7386fa340..56fbb96f0 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -1797,8 +1797,9 @@ enum { #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0) && \ - (!defined(RHEL_RELEASE_CODE) || \ - RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(9, 3)) + (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8 || \ + RHEL_MAJOR -0 == 8 && RHEL_MINOR -0 < 9 || \ + RHEL_MAJOR -0 == 9 && RHEL_MINOR -0 < 3) /* * See also commit 64fd2ba977b1 ("scsi: scsi_transport_fc: Add an additional * flag to fc_host_fpin_rcv()") # v6.3