diff --git a/scst/include/backport.h b/scst/include/backport.h index 56d25e4ee..a959b2415 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -231,7 +231,10 @@ void blk_execute_rq_nowait_backport(struct request *rq, bool at_head) /* */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 5, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 5, 0) && \ + (!defined(RHEL_RELEASE_CODE) || \ + RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(9, 4)) + /* * See also commit 05bdb9965305 ("block: replace fmode_t with a block-specific * type for block open flags") # v6.5.