OSDN Git Service

scsi: core: Introduce enums for the SAM and host status codes
authorBart Van Assche <bvanassche@acm.org>
Mon, 24 May 2021 02:54:56 +0000 (19:54 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 3 Jun 2021 03:09:39 +0000 (23:09 -0400)
commit149d0e489e807f1e6dc265f975a793cea11ecbea
treea0e16e90e239694ff6a13f0551dd55a07be67985
parentd377f415dddc18b33c88dcd41cfe4fe6d9db82fb
scsi: core: Introduce enums for the SAM and host status codes

Make it possible for the compiler to verify whether SAM and host
status codes are used correctly.

[mkp: resolve conflicts with Hannes' SCSI result series]

Link: https://lore.kernel.org/r/20210524025457.11299-3-bvanassche@acm.org
Cc: Hannes Reinecke <hare@suse.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/constants.c
drivers/target/target_core_pscsi.c
include/scsi/scsi.h
include/scsi/scsi_proto.h
include/scsi/scsi_status.h [new file with mode: 0644]