mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
Here is the patch to fix problems with scst_local and 2.6.24 or earlier (tested by building under 2.6.24).
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: http://svn.code.sf.net/p/scst/svn/trunk@568 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user