From ebce50dccdf3f56d54a74e95bb7850f1f9516038 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Sun, 12 Apr 2026 17:57:54 +0300 Subject: [PATCH] scst/include/backport.h: Fix UEK8 build This patch fixes the build against UEK8 kernel version 6.12.0-200.74.27.2.el10uek. --- 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 7e03efa84..8603a891d 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -787,7 +787,9 @@ static inline long get_user_pages_backport(unsigned long start, #define time_is_before_jiffies64(a) time_after64(get_jiffies_64(), a) #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0) && \ + (!defined(UEK_KABI_RENAME) || \ + LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)) /* * See also commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") # v6.13. */