diff --git a/scst/include/backport.h b/scst/include/backport.h index 112c8dc98..989fc33b5 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -848,7 +848,9 @@ static inline void mempool_destroy_backport(mempool_t *pool) /* */ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) && \ - (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7) + (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7 || \ + (RHEL_MAJOR -0 == 7 && RHEL_MINOR -0 < 5)) && \ + !defined(_COMPAT_LINUX_MM_H) /* See also commit a7c3e901a46f ("mm: introduce kv[mz]alloc helpers") # v4.12 */ static inline void *kvmalloc_node(size_t size, gfp_t flags, int node) {