backport.h: A second build fix for RHEL 6 kernels

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6655 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-11-10 16:03:16 +00:00
parent d434ae4ff6
commit be7c3b3ee8

View File

@@ -429,9 +429,10 @@ static inline void sg_set_page(struct scatterlist *sg, struct page *page,
(__flags), NULL, NULL)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) && \
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) && \
!(LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 52) && \
LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0))
LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)) && \
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 6)
static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags)
{
if (size != 0 && n > ULONG_MAX / size)