From e4ba045c90ffc54c837d255a7586dea883403193 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 31 Mar 2010 11:10:08 +0000 Subject: [PATCH] Fix for compilaion issue with kernels between .18 < and .25. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1573 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- scst/src/scst_targ.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index b0cf99628..9f8bf7c1f 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -2417,7 +2417,7 @@ static int scst_ioc_keeper_thread(void *arg) sBUG_ON(aic_keeper->aic != NULL); -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19) aic_keeper->aic = get_io_context(GFP_KERNEL); #else aic_keeper->aic = get_io_context(GFP_KERNEL, -1); diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 7ce8858aa..1699addc5 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -3767,7 +3767,7 @@ int scst_cmd_thread(void *arg) if (p_cmd_threads != &scst_main_cmd_threads) { if (p_cmd_threads->io_context == NULL) { -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19) p_cmd_threads->io_context = get_io_context(GFP_KERNEL); #else p_cmd_threads->io_context = get_io_context(GFP_KERNEL, -1);