scst/include/backport.h: Fix UEK8 build

This patch fixes the build against UEK8 kernel version
6.12.0-200.74.27.2.el10uek.
This commit is contained in:
Gleb Chesnokov
2026-04-12 17:57:54 +03:00
parent b97f62a869
commit ebce50dccd

View File

@@ -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.
*/