mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
scsi: remove scsi_execute_req_flags
And switch all callers to use scsi_execute instead. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
76aaf87b4c
commit
fcbfffe2c5
8 changed files with 27 additions and 51 deletions
|
|
@ -413,17 +413,13 @@ extern int scsi_execute(struct scsi_device *sdev, const unsigned char *cmd,
|
|||
unsigned char *sense, struct scsi_sense_hdr *sshdr,
|
||||
int timeout, int retries, u64 flags,
|
||||
req_flags_t rq_flags, int *resid);
|
||||
extern int scsi_execute_req_flags(struct scsi_device *sdev,
|
||||
const unsigned char *cmd, int data_direction, void *buffer,
|
||||
unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout,
|
||||
int retries, int *resid, u64 flags, req_flags_t rq_flags);
|
||||
static inline int scsi_execute_req(struct scsi_device *sdev,
|
||||
const unsigned char *cmd, int data_direction, void *buffer,
|
||||
unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout,
|
||||
int retries, int *resid)
|
||||
{
|
||||
return scsi_execute_req_flags(sdev, cmd, data_direction, buffer,
|
||||
bufflen, sshdr, timeout, retries, resid, 0, 0);
|
||||
return scsi_execute(sdev, cmd, data_direction, buffer,
|
||||
bufflen, NULL, sshdr, timeout, retries, 0, 0, resid);
|
||||
}
|
||||
extern void sdev_disable_disk_events(struct scsi_device *sdev);
|
||||
extern void sdev_enable_disk_events(struct scsi_device *sdev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue