scst/include/backport.h: Fix building on RHEL 8.8

This fixes a compilation issue with RHEL 8.8 in scst/include/backport.h.
This is the same issue as was seen for RHEL 8.7 in #77
This commit is contained in:
Robert Blackhart
2023-04-03 06:45:36 -04:00
committed by Gleb Chesnokov
parent 4e8ec64959
commit 9be09fd68b

View File

@@ -1474,7 +1474,7 @@ static inline void scsi_build_sense(struct scsi_cmnd *scmd, int desc,
RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(9, 1)) RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(9, 1))
#if (!defined(RHEL_RELEASE_CODE) || \ #if (!defined(RHEL_RELEASE_CODE) || \
RHEL_RELEASE_CODE -0 != RHEL_RELEASE_VERSION(8, 7)) RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(8, 7))
/* /*
* See also 51f3a4788928 ("scsi: core: Introduce the scsi_cmd_to_rq() * See also 51f3a4788928 ("scsi: core: Introduce the scsi_cmd_to_rq()
* function"). * function").
@@ -1505,7 +1505,7 @@ static inline unsigned int scsi_prot_interval(struct scsi_cmnd *scmd)
*/ */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || \ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || \
(defined(RHEL_RELEASE_CODE) && \ (defined(RHEL_RELEASE_CODE) && \
RHEL_RELEASE_CODE -0 != RHEL_RELEASE_VERSION(8, 7))) RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(8, 7)))
static inline u32 scsi_prot_ref_tag(struct scsi_cmnd *scmd) static inline u32 scsi_prot_ref_tag(struct scsi_cmnd *scmd)
{ {
#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 == 7 #if defined(RHEL_MAJOR) && RHEL_MAJOR -0 == 7