From 78d41552b41bf6ddb7feee5b80685a06f4816a72 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Tue, 9 Dec 2025 15:32:36 +0300 Subject: [PATCH] scst/include/backport.h: Unbreak build on kernels < 6.13 --- scst/include/backport.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index 47f27afbf..d83dbd00c 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include /* struct scatterlist */ @@ -668,6 +669,15 @@ kernel_write_backport(struct file *file, const void *buf, size_t count, #define kernel_write kernel_write_backport #endif +/* */ + +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0) +/* + * See also commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") # v6.13. + */ +#define secs_to_jiffies(_secs) (unsigned long)((_secs) * HZ) +#endif + /* */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 21, 0) || \