From: Gleb C. <lna...@ya...> - 2024-05-02 14:20:50
|
Commit: 71abad2 GitHub URL: https://github.com/SCST-project/scst/commit/71abad275e1838d3639122e85b36e211e8006c6b Author: Gleb Chesnokov Date: 2024-05-02T17:20:01+03:00 Log Message: ----------- scst/include/backport.h: Fix backport for new stable kernels This patch fixes the build against kernel versions >= 5.10.210. 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 5798e7c..d611afe 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -933,13 +933,15 @@ static inline void kvfree(void *addr) #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 18, 0) && \ (LINUX_VERSION_CODE >> 8 != KERNEL_VERSION(5, 15, 0) >> 8 || \ LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 54)) && \ + (LINUX_VERSION_CODE >> 8 != KERNEL_VERSION(5, 10, 0) >> 8 || \ + LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 210)) && \ (!defined(RHEL_RELEASE_CODE) || \ RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(9, 0)) && \ (!defined(UEK_KABI_RENAME) || \ LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)) /* * See also commit a8749a35c3990 ("mm: vmalloc: introduce array allocation functions") # v5.18, - * v5.15.54. + * v5.15.54, v5.10.210. */ static inline void *vmalloc_array(size_t n, size_t size) { |