diff options
author | Christoph Hellwig <hch@lst.de> | 2006-06-10 12:01:03 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-06-10 17:24:40 -0400 |
commit | beb40487508290f5d6565598c60a3f44261beef2 (patch) | |
tree | ca63df47d8db8f1b1161b5db094b0a9c2b541d91 /drivers/scsi/scsi_error.c | |
parent | 1951d099dfd8fa529e86f4ac81d1a34554fbe302 (diff) |
[SCSI] remove scsi_request infrastructure
With Achim patch the last user (gdth) is switched away from scsi_request
so we an kill it now. Also disables some code in i2o_scsi that was
broken since the sg driver stopped using scsi_requests.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r-- | drivers/scsi/scsi_error.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 1c75646f9689..471a43102923 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c | |||
@@ -26,13 +26,13 @@ | |||
26 | #include <linux/delay.h> | 26 | #include <linux/delay.h> |
27 | 27 | ||
28 | #include <scsi/scsi.h> | 28 | #include <scsi/scsi.h> |
29 | #include <scsi/scsi_cmnd.h> | ||
29 | #include <scsi/scsi_dbg.h> | 30 | #include <scsi/scsi_dbg.h> |
30 | #include <scsi/scsi_device.h> | 31 | #include <scsi/scsi_device.h> |
31 | #include <scsi/scsi_eh.h> | 32 | #include <scsi/scsi_eh.h> |
32 | #include <scsi/scsi_transport.h> | 33 | #include <scsi/scsi_transport.h> |
33 | #include <scsi/scsi_host.h> | 34 | #include <scsi/scsi_host.h> |
34 | #include <scsi/scsi_ioctl.h> | 35 | #include <scsi/scsi_ioctl.h> |
35 | #include <scsi/scsi_request.h> | ||
36 | 36 | ||
37 | #include "scsi_priv.h" | 37 | #include "scsi_priv.h" |
38 | #include "scsi_logging.h" | 38 | #include "scsi_logging.h" |
@@ -1671,8 +1671,6 @@ scsi_reset_provider(struct scsi_device *dev, int flag) | |||
1671 | scmd->cmd_len = 0; | 1671 | scmd->cmd_len = 0; |
1672 | 1672 | ||
1673 | scmd->sc_data_direction = DMA_BIDIRECTIONAL; | 1673 | scmd->sc_data_direction = DMA_BIDIRECTIONAL; |
1674 | scmd->sc_request = NULL; | ||
1675 | scmd->sc_magic = SCSI_CMND_MAGIC; | ||
1676 | 1674 | ||
1677 | init_timer(&scmd->eh_timeout); | 1675 | init_timer(&scmd->eh_timeout); |
1678 | 1676 | ||
@@ -1769,14 +1767,6 @@ int scsi_normalize_sense(const u8 *sense_buffer, int sb_len, | |||
1769 | } | 1767 | } |
1770 | EXPORT_SYMBOL(scsi_normalize_sense); | 1768 | EXPORT_SYMBOL(scsi_normalize_sense); |
1771 | 1769 | ||
1772 | int scsi_request_normalize_sense(struct scsi_request *sreq, | ||
1773 | struct scsi_sense_hdr *sshdr) | ||
1774 | { | ||
1775 | return scsi_normalize_sense(sreq->sr_sense_buffer, | ||
1776 | sizeof(sreq->sr_sense_buffer), sshdr); | ||
1777 | } | ||
1778 | EXPORT_SYMBOL(scsi_request_normalize_sense); | ||
1779 | |||
1780 | int scsi_command_normalize_sense(struct scsi_cmnd *cmd, | 1770 | int scsi_command_normalize_sense(struct scsi_cmnd *cmd, |
1781 | struct scsi_sense_hdr *sshdr) | 1771 | struct scsi_sense_hdr *sshdr) |
1782 | { | 1772 | { |