From eb6928aa07248949efd095e986ffa2d8fe2d2c0b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 30 Apr 2019 13:53:38 +0000 Subject: [PATCH] scst: Port to Oracle Linux 7 UEKR5 (merge r8018 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8278 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 8d63de929..dafdbf873 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -965,7 +965,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,