TESTS: ifdef out iov_tot_len if we do not have SG_IO
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -234,6 +234,7 @@ static int check_result(const char *opcode, struct scsi_device *sdev,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_SG_IO
|
||||||
static size_t iov_tot_len(struct scsi_iovec *iov, int niov)
|
static size_t iov_tot_len(struct scsi_iovec *iov, int niov)
|
||||||
{
|
{
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
@@ -243,6 +244,7 @@ static size_t iov_tot_len(struct scsi_iovec *iov, int niov)
|
|||||||
len += iov[i].iov_len;
|
len += iov[i].iov_len;
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct scsi_task *send_scsi_command(struct scsi_device *sdev, struct scsi_task *task, struct iscsi_data *d)
|
static struct scsi_task *send_scsi_command(struct scsi_device *sdev, struct scsi_task *task, struct iscsi_data *d)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user