mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
scst/include/backport.h: Fix backport for new stable kernels
This patch fixes the build against kernel versions >= 5.10.210.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user