From 16b4f4aba508134f5dc99acc85ff57e14e68135f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 3 Aug 2018 04:23:36 +0000 Subject: [PATCH] scst: cleanup follow up for r7449 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7464 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 5e6126d94..4be44cd88 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -704,30 +704,6 @@ static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags) } #endif -/* - * See also commit 8eb8284b4129 ("usercopy: Prepare for usercopy - * whitelisting"). - */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23) -static inline struct kmem_cache *kmem_cache_create_usercopy(const char *name, - unsigned int size, unsigned int align, - unsigned long flags, - unsigned int useroffset, unsigned int usersize, - void (*ctor)(void *)) -{ - return kmem_cache_create(name, size, align, flags, ctor, NULL); -} -#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0) -static inline struct kmem_cache *kmem_cache_create_usercopy(const char *name, - unsigned int size, unsigned int align, - unsigned long flags, - unsigned int useroffset, unsigned int usersize, - void (*ctor)(void *)) -{ - return kmem_cache_create(name, size, align, flags, ctor); -} -#endif - /* */ #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)