scst: Port to RHEL 7.7 (merge r8586 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8587 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-09-24 21:46:01 +00:00
parent a3328841ee
commit ce398c065e

View File

@@ -906,6 +906,8 @@ static inline void *kvzalloc(size_t size, gfp_t flags)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) && \
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7 || \
RHEL_MAJOR -0 == 7 && RHEL_MINOR -0 < 7) && \
!defined(_COMPAT_LINUX_MM_H)
/* See also commit 1c542f38ab8d ("mm: Introduce kvcalloc()") # v4.18. */
static inline void *kvcalloc(size_t n, size_t size, gfp_t flags)