hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/scsi/libsas.h
....@@ -474,10 +474,16 @@
474474 };
475475
476476 enum exec_status {
477
- /* The SAM_STAT_.. codes fit in the lower 6 bits, alias some of
478
- * them here to silence 'case value not in enumerated type' warnings
477
+ /*
478
+ * Values 0..0x7f are used to return the SAM_STAT_* codes. To avoid
479
+ * 'case value not in enumerated type' compiler warnings every value
480
+ * returned through the exec_status enum needs an alias with the SAS_
481
+ * prefix here.
479482 */
480
- __SAM_STAT_CHECK_CONDITION = SAM_STAT_CHECK_CONDITION,
483
+ SAS_SAM_STAT_GOOD = SAM_STAT_GOOD,
484
+ SAS_SAM_STAT_BUSY = SAM_STAT_BUSY,
485
+ SAS_SAM_STAT_TASK_ABORTED = SAM_STAT_TASK_ABORTED,
486
+ SAS_SAM_STAT_CHECK_CONDITION = SAM_STAT_CHECK_CONDITION,
481487
482488 SAS_DEV_NO_RESPONSE = 0x80,
483489 SAS_DATA_UNDERRUN,