From: Gleb C. <lna...@ya...> - 2023-07-19 08:36:23
|
Commit: 606430b GitHub URL: https://github.com/SCST-project/scst/commit/606430be2967e8b4024d0062a62ce76a898222c5 Author: Gleb Chesnokov Date: 2023-07-19T11:35:51+03:00 Log Message: ----------- scst/include/backport.h: Improve the RHEL 9.2 backport This was detected by smatch. Modified Paths: -------------- scst/include/backport.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) =================================================================== diff --git a/scst/include/backport.h b/scst/include/backport.h index 619ef70..80683bc 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -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 */ |