Skip to content

Commit

Permalink
scst/include/backport.h: Fix building on RHEL 8.8
Browse files Browse the repository at this point in the history
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
  • Loading branch information
RobertBlackhart authored and lnocturno committed Apr 3, 2023
1 parent 4e8ec64 commit 9be09fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scst/include/backport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

#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()
* function").
Expand Down Expand Up @@ -1505,7 +1505,7 @@ static inline unsigned int scsi_prot_interval(struct scsi_cmnd *scmd)
*/
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || \
(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)
{
#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 == 7
Expand Down

0 comments on commit 9be09fd

Please sign in to comment.