diff options
| author | Bart Van Assche <[email protected]> | 2021-05-24 02:54:55 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-06-02 20:10:46 +0000 |
| commit | d377f415dddc18b33c88dcd41cfe4fe6d9db82fb (patch) | |
| tree | ad098735e63da4ac386a69ab56f12ee609156e22 /drivers/scsi/libsas/sas_task.c | |
| parent | Merge branch '5.14/scsi-result' into 5.14/scsi-staging (diff) | |
| download | kernel-d377f415dddc18b33c88dcd41cfe4fe6d9db82fb.tar.gz kernel-d377f415dddc18b33c88dcd41cfe4fe6d9db82fb.zip | |
scsi: libsas: Introduce more SAM status code aliases in enum exec_status
This patch prepares for converting SAM status codes into an enum. Without
this patch converting SAM status codes into an enumeration type would
trigger complaints about enum type mismatches for the SAS code.
Link: https://lore.kernel.org/r/[email protected]
Cc: Hannes Reinecke <[email protected]>
Cc: Artur Paszkiewicz <[email protected]>
Cc: Jason Yan <[email protected]>
Reviewed-by: John Garry <[email protected]>
Reviewed-by: Himanshu Madhani <[email protected]>
Acked-by: Jack Wang <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/libsas/sas_task.c')
| -rw-r--r-- | drivers/scsi/libsas/sas_task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libsas/sas_task.c b/drivers/scsi/libsas/sas_task.c index e2d42593ce52..2966ead1d421 100644 --- a/drivers/scsi/libsas/sas_task.c +++ b/drivers/scsi/libsas/sas_task.c @@ -20,7 +20,7 @@ void sas_ssp_task_response(struct device *dev, struct sas_task *task, else if (iu->datapres == 1) tstat->stat = iu->resp_data[3]; else if (iu->datapres == 2) { - tstat->stat = SAM_STAT_CHECK_CONDITION; + tstat->stat = SAS_SAM_STAT_CHECK_CONDITION; tstat->buf_valid_size = min_t(int, SAS_STATUS_BUF_SIZE, be32_to_cpu(iu->sense_data_len)); @@ -32,7 +32,7 @@ void sas_ssp_task_response(struct device *dev, struct sas_task *task, } else /* when datapres contains corrupt/unknown value... */ - tstat->stat = SAM_STAT_CHECK_CONDITION; + tstat->stat = SAS_SAM_STAT_CHECK_CONDITION; } EXPORT_SYMBOL_GPL(sas_ssp_task_response); |
