linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Introduce enums for SCSI status codes
@ 2021-05-24  2:54 Bart Van Assche
  2021-05-24  2:54 ` [PATCH v3 1/3] libsas: Introduce more SAM status code aliases in enum exec_status Bart Van Assche
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Bart Van Assche @ 2021-05-24  2:54 UTC (permalink / raw)
  To: Martin K . Petersen; +Cc: Christoph Hellwig, linux-scsi, Bart Van Assche

Hi Martin,

This patch series introduces enums for the SAM, message, host and driver
status codes and hence improves static type checking by the compiler.
Please consider this patch series for kernel v5.14.

Thanks,

Bart.

Changes compared to v2:
- Changed SAS_STAT_ prefix into SAS_SAM_STAT_.

Changes compared to v1:
- Modified the comment block at the start of the enum exec_status definition
  in libsas.h.
- Changed the __SAM_STAT_ prefix into SAS_STAT_ for the SAM status codes that
  are also used in the SAS code.
- Restored the reverse-Christmas tree style in two functions.
- Renamed enum host_status and driver_status into enum scsi_host_status and
  scsi_driver_status respectively.

Bart Van Assche (3):
  libsas: Introduce more SAM status code aliases in enum exec_status
  Introduce enums for the SAM, message, host and driver status codes
  Change the type of the second argument of
    scsi_host_complete_all_commands()

 drivers/scsi/aic94xx/aic94xx_task.c    |  2 +-
 drivers/scsi/constants.c               |  4 +-
 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c |  8 +--
 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c |  8 +--
 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c |  8 +--
 drivers/scsi/hosts.c                   |  8 ++-
 drivers/scsi/isci/request.c            | 10 +--
 drivers/scsi/isci/task.c               |  2 +-
 drivers/scsi/libsas/sas_ata.c          |  7 +-
 drivers/scsi/libsas/sas_expander.c     |  2 +-
 drivers/scsi/libsas/sas_task.c         |  4 +-
 drivers/scsi/mvsas/mv_sas.c            | 10 +--
 drivers/scsi/pm8001/pm8001_hwi.c       | 16 ++---
 drivers/scsi/pm8001/pm8001_sas.c       |  4 +-
 drivers/scsi/pm8001/pm80xx_hwi.c       | 14 ++--
 drivers/target/target_core_pscsi.c     |  2 +-
 include/scsi/libsas.h                  | 12 +++-
 include/scsi/scsi.h                    | 81 +----------------------
 include/scsi/scsi_host.h               |  2 +-
 include/scsi/scsi_proto.h              | 24 +++----
 include/scsi/scsi_status.h             | 89 ++++++++++++++++++++++++++
 21 files changed, 170 insertions(+), 147 deletions(-)
 create mode 100644 include/scsi/scsi_status.h


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-06-16  3:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24  2:54 [PATCH v3 0/3] Introduce enums for SCSI status codes Bart Van Assche
2021-05-24  2:54 ` [PATCH v3 1/3] libsas: Introduce more SAM status code aliases in enum exec_status Bart Van Assche
2021-05-24 15:25   ` Himanshu Madhani
2021-05-24  2:54 ` [PATCH v3 2/3] Introduce enums for the SAM, message, host and driver status codes Bart Van Assche
2021-05-24 15:25   ` Himanshu Madhani
2021-05-25  6:44   ` 2463a604a8: netperf.Throughput_tps 12.8% improvement kernel test robot
2021-05-25 16:44     ` Bart Van Assche
2021-05-26  1:50       ` [LKP] " Xing Zhengjun
2021-05-24  2:54 ` [PATCH v3 3/3] Change the type of the second argument of scsi_host_complete_all_commands() Bart Van Assche
2021-05-24 15:25   ` Himanshu Madhani
2021-06-08  2:27 ` [PATCH v3 0/3] Introduce enums for SCSI status codes Martin K. Petersen
2021-06-16  3:48 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).