From 399d33dac979ecf1702b6075f9bcdc12b87db770 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 25 Apr 2011 18:02:58 +0000 Subject: [PATCH] Bug fix for RHEL 6. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3409 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_mem.c b/scst/src/scst_mem.c index a2740530c..c39db2900 100644 --- a/scst/src/scst_mem.c +++ b/scst/src/scst_mem.c @@ -339,7 +339,7 @@ out_unlock_put: goto out; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35) && RHEL_MAJOR -0 < 6 static int sgv_shrink(int nr, gfp_t gfpm) #else static int sgv_shrink(struct shrinker *shrinker, int nr, gfp_t gfpm)