scst/include/backport.h: Improve the RHEL 9.2 backport

This was detected by smatch.
This commit is contained in:
Gleb Chesnokov
2023-07-19 11:35:51 +03:00
parent bc9ec6f9e7
commit 606430be29
+3 -1
View File
@@ -177,7 +177,9 @@ enum {
};
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0) && \
(!defined(RHEL_RELEASE_CODE) || \
RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(9, 2))
/*
* See also commit 342a72a33407 ("block: Introduce the type blk_opf_t") # v6.0
*/