From: Gleb C. <lna...@ya...> - 2024-05-03 09:19:27
|
Commit: 8a1a7fa GitHub URL: https://github.com/SCST-project/scst/commit/8a1a7fab1d47f36a17826c5fc350e436453e72b4 Author: Gleb Chesnokov Date: 2024-05-03T12:18:43+03:00 Log Message: ----------- scst/include/backport.h: Fix the build against UEK kernels Commit 48ef50966a17 ("scst/include/backport.h: Port to the latest UEK kernels") broke the build for UEK kernel versions before v5.4.17-2136. Fix it. 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 5de4090..3ab377c 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -1678,7 +1678,9 @@ static inline void scsi_build_sense(struct scsi_cmnd *scmd, int desc, (!defined(RHEL_RELEASE_CODE) || \ RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(8, 7) || \ RHEL_RELEASE_CODE -0 == RHEL_RELEASE_VERSION(9, 0)) && \ - !defined(UEK_KABI_RENAME) + (!defined(UEK_KABI_RENAME) || \ + LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 17) || \ + !defined(SB_I_SKIP_SYNC)) /* * See also 51f3a4788928 ("scsi: core: Introduce the scsi_cmd_to_rq() * function") # v5.15. |