From 18cd60d67e6832de36d84672468672daff36c282 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 8 Mar 2019 17:48:14 +0000 Subject: [PATCH] scst: Port to Oracle Linux 7 UEKR5 See also https://yum.oracle.com/oracle-linux-7.html. Reported-by: Jose Martins git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8018 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index e68cf8345..c13c2c1bb 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -986,7 +986,8 @@ static inline struct kmem_cache *kmem_cache_create_usercopy(const char *name, { return kmem_cache_create(name, size, align, flags, ctor, NULL); } -#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0) +/* UEKR5 is based on kernel v4.14.35 but has a backport of the v4.16 API. */ +#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0) && !defined(UEK_KABI_RENAME) static inline struct kmem_cache *kmem_cache_create_usercopy(const char *name, unsigned int size, unsigned int align, unsigned long flags,