From 4c901065779e5ec3587f8fc915c8a701d0609916 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Mon, 1 Dec 2008 00:42:02 +0000 Subject: [PATCH] Fix a problem on kernels older than 2.6.25 where the symbol SCSI_MAX_SG_SEGMENTS is not available. Define it if it is not already defined. Also fix a few minor English issues. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@590 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst_local/scst_local.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index 2acb466a5..902c1758f 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -43,10 +43,14 @@ #include +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)) +#define SCSI_MAX_SG_SEGMENTS 128 +#endif + #if defined(CONFIG_HIGHMEM4G) || defined(CONFIG_HIGHMEM64G) #warning "HIGHMEM kernel configurations are not supported by this module, \ - because nowadays it doesn't worth the effort. Consider change \ - VMSPLIT option or use 64-bit configuration instead. See SCST core \ + because nowadays it isn't worth the effort. Consider changing \ + VMSPLIT option or use a 64-bit configuration instead. See SCST core \ README file for details." #endif @@ -75,8 +79,8 @@ unsigned long scst_local_trace_flag = SCST_LOCAL_DEFAULT_LOG_FLAGS; static void scst_local_remove_adapter(void); static int scst_local_add_adapter(void); -#define SCST_LOCAL_VERSION "0.8" -static const char *scst_local_version_date = "20081116"; +#define SCST_LOCAL_VERSION "0.9" +static const char *scst_local_version_date = "20081130"; /* * Target structures that are shared between the two pieces