diff --git a/scst/src/scst_mem.c b/scst/src/scst_mem.c index c39db2900..2ae96d5c9 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) && RHEL_MAJOR -0 < 6 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35) && (!defined(RHEL_MAJOR) || 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)