From 9d89cc7148381b291fd988c7b3358274ac298704 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 2 Oct 2018 00:41:21 +0000 Subject: [PATCH] scst/include/backport.h: Remove the vzalloc() backport The supported stable kernels before 2.6.37 already include a backported version of vzalloc(). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7487 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 2a30b74cd..99d61fd4b 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -796,23 +796,6 @@ typedef unsigned long uintptr_t; char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap); #endif -/* */ - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 37) && \ - (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 5 || \ - RHEL_MAJOR -0 == 5 && RHEL_MINOR -0 < 10 || \ - RHEL_MAJOR -0 == 6 && RHEL_MINOR -0 < 1) -/* - * See also patch "mm: add vzalloc() and vzalloc_node() helpers" (commit - * e1ca7788dec6773b1a2bce51b7141948f2b8bccf). - */ -static inline void *vzalloc(unsigned long size) -{ - return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM | __GFP_ZERO, - PAGE_KERNEL); -} -#endif - /* */ #if defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5