aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r--drivers/scsi/scsi_error.c12
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}
1770EXPORT_SYMBOL(scsi_normalize_sense); 1768EXPORT_SYMBOL(scsi_normalize_sense);
1771 1769
1772int 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}
1778EXPORT_SYMBOL(scsi_request_normalize_sense);
1779
1780int scsi_command_normalize_sense(struct scsi_cmnd *cmd, 1770int scsi_command_normalize_sense(struct scsi_cmnd *cmd,
1781 struct scsi_sense_hdr *sshdr) 1771 struct scsi_sense_hdr *sshdr)
1782{ 1772{