From c8533e86a43400aa43742f2ecae3e3c1647bddc0 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 29 Mar 2019 01:19:28 +0000 Subject: [PATCH] scst/include/backport.h: Fix kvcalloc() backport git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8089 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 4662ec548..600121bce 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -854,7 +854,8 @@ static inline void *kvzalloc(size_t size, gfp_t flags) } #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) +/* See also commit 1c542f38ab8d ("mm: Introduce kvcalloc()") # v4.18. */ static inline void *kvcalloc(size_t n, size_t size, gfp_t flags) { return kvmalloc(n * size, flags | __GFP_ZERO);