Commit 4333548b authored by Andreas Herrmann's avatar Andreas Herrmann Committed by Linus Torvalds

[PATCH] s390: make zfcp compile again.

Make zfcp compile again after the SPI-5 constants and the interface to
suspend I/O to scsi devices got added.
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 448f8888
...@@ -188,11 +188,11 @@ typedef unsigned int fcp_dl_t; ...@@ -188,11 +188,11 @@ typedef unsigned int fcp_dl_t;
#define UNTAGGED 5 #define UNTAGGED 5
/* task management flags in FCP-2 FCP_CMND IU */ /* task management flags in FCP-2 FCP_CMND IU */
#define CLEAR_ACA 0x40 #define FCP_CLEAR_ACA 0x40
#define TARGET_RESET 0x20 #define FCP_TARGET_RESET 0x20
#define LOGICAL_UNIT_RESET 0x10 #define FCP_LOGICAL_UNIT_RESET 0x10
#define CLEAR_TASK_SET 0x04 #define FCP_CLEAR_TASK_SET 0x04
#define ABORT_TASK_SET 0x02 #define FCP_ABORT_TASK_SET 0x02
#define FCP_CDB_LENGTH 16 #define FCP_CDB_LENGTH 16
......
...@@ -49,7 +49,7 @@ static int zfcp_task_management_function(struct zfcp_unit *, u8); ...@@ -49,7 +49,7 @@ static int zfcp_task_management_function(struct zfcp_unit *, u8);
static struct zfcp_unit *zfcp_unit_lookup(struct zfcp_adapter *, int, scsi_id_t, static struct zfcp_unit *zfcp_unit_lookup(struct zfcp_adapter *, int, scsi_id_t,
scsi_lun_t); scsi_lun_t);
static struct zfcp_port * zfcp_port_lookup(struct zfcp_adapter *, int, static struct zfcp_port *zfcp_port_lookup(struct zfcp_adapter *, int,
scsi_id_t); scsi_id_t);
static struct device_attribute *zfcp_sysfs_sdev_attrs[]; static struct device_attribute *zfcp_sysfs_sdev_attrs[];
...@@ -402,15 +402,7 @@ zfcp_unit_lookup(struct zfcp_adapter *adapter, int channel, scsi_id_t id, ...@@ -402,15 +402,7 @@ zfcp_unit_lookup(struct zfcp_adapter *adapter, int channel, scsi_id_t id,
out: out:
return retval; return retval;
} }
/*
* function: zfcp_unit_tgt_lookup
*
* purpose:
*
* returns:
*
* context:
*/
static struct zfcp_port * static struct zfcp_port *
zfcp_port_lookup(struct zfcp_adapter *adapter, int channel, scsi_id_t id) zfcp_port_lookup(struct zfcp_adapter *adapter, int channel, scsi_id_t id)
{ {
...@@ -420,7 +412,7 @@ zfcp_port_lookup(struct zfcp_adapter *adapter, int channel, scsi_id_t id) ...@@ -420,7 +412,7 @@ zfcp_port_lookup(struct zfcp_adapter *adapter, int channel, scsi_id_t id)
if (id == port->scsi_id) if (id == port->scsi_id)
return port; return port;
} }
return (zfcp_port *)NULL; return (struct zfcp_port *) NULL;
} }
/* /*
...@@ -653,7 +645,7 @@ zfcp_scsi_eh_device_reset_handler(struct scsi_cmnd *scpnt) ...@@ -653,7 +645,7 @@ zfcp_scsi_eh_device_reset_handler(struct scsi_cmnd *scpnt)
if (!atomic_test_mask(ZFCP_STATUS_UNIT_NOTSUPPUNITRESET, if (!atomic_test_mask(ZFCP_STATUS_UNIT_NOTSUPPUNITRESET,
&unit->status)) { &unit->status)) {
retval = retval =
zfcp_task_management_function(unit, LOGICAL_UNIT_RESET); zfcp_task_management_function(unit, FCP_LOGICAL_UNIT_RESET);
if (retval) { if (retval) {
ZFCP_LOG_DEBUG("unit reset failed (unit=%p)\n", unit); ZFCP_LOG_DEBUG("unit reset failed (unit=%p)\n", unit);
if (retval == -ENOTSUPP) if (retval == -ENOTSUPP)
...@@ -669,7 +661,7 @@ zfcp_scsi_eh_device_reset_handler(struct scsi_cmnd *scpnt) ...@@ -669,7 +661,7 @@ zfcp_scsi_eh_device_reset_handler(struct scsi_cmnd *scpnt)
goto out; goto out;
} }
} }
retval = zfcp_task_management_function(unit, TARGET_RESET); retval = zfcp_task_management_function(unit, FCP_TARGET_RESET);
if (retval) { if (retval) {
ZFCP_LOG_DEBUG("target reset failed (unit=%p)\n", unit); ZFCP_LOG_DEBUG("target reset failed (unit=%p)\n", unit);
retval = FAILED; retval = FAILED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment