Here is the patch to fix problems with scst_local and 2.6.24 or earlier (tested by...
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Tue, 11 Nov 2008 12:04:52 +0000 (12:04 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Tue, 11 Nov 2008 12:04:52 +0000 (12:04 +0000)
Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com>
This line, and those below, will be ignored--

M    trunk/scst_local/scst_local.c

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@568 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst_local/scst_local.c

index 341b7b1..b6ee732 100644 (file)
@@ -341,6 +341,7 @@ static int scst_local_device_reset(struct scsi_cmnd *SCpnt)
        return ret;
 }
 
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 25))
 static int scst_local_target_reset(struct scsi_cmnd *SCpnt)
 {
        struct scst_local_host_info *scst_lcl_host;
@@ -371,6 +372,7 @@ static int scst_local_target_reset(struct scsi_cmnd *SCpnt)
        TRACE_EXIT_RES(ret);
        return ret;
 }
+#endif
 
 static void copy_sense(struct scsi_cmnd *cmnd, struct scst_cmd *scst_cmnd)
 {
@@ -666,7 +668,9 @@ static struct scsi_host_template scst_lcl_ini_driver_template = {
        .queuecommand                   = scst_local_queuecommand,
        .eh_abort_handler               = scst_local_abort,
        .eh_device_reset_handler        = scst_local_device_reset,
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 25))
        .eh_target_reset_handler        = scst_local_target_reset,
+#endif
        .can_queue                      = SCST_LOCAL_CANQUEUE,
        .this_id                        = 7, /*???*/
        .sg_tablesize                   = SCST_LOCAL_SG_TABLESIZE,