kernel_samsung_a53x/include/scsi
Bart Van Assche 6a3a176c92 scsi: core: Introduce enum scsi_disposition
[ Upstream commit b8e162f9e7e2da6e823a4984d6aa0523e278babf ]

Improve readability of the code in the SCSI core by introducing an
enumeration type for the values used internally that decide how to continue
processing a SCSI command. The eh_*_handler return values have not been
changed because that would involve modifying all SCSI drivers.

The output of the following command has been inspected to verify that no
out-of-range values are assigned to a variable of type enum
scsi_disposition:

KCFLAGS=-Wassign-enum make CC=clang W=1 drivers/scsi/

Link: https://lore.kernel.org/r/20210415220826.29438-6-bvanassche@acm.org
Cc: Christoph Hellwig <hch@lst.de>
Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: 4373534a9850 ("scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:21 +01:00
..
fc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fc_encode.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fc_frame.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fcoe_sysfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iscsi_if.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iscsi_proto.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iser.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libfc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libfcoe.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libiscsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libiscsi_tcp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libsas.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sas.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sas_ata.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi.h scsi: core: Introduce enum scsi_disposition 2024-11-18 12:13:21 +01:00
scsi_bsg_iscsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_cmnd.h Revert "scsi: core: Add scsi_prot_ref_tag() helper" 2024-11-18 12:12:05 +01:00
scsi_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_dbg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_device.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_devinfo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_dh.h scsi: core: Introduce enum scsi_disposition 2024-11-18 12:13:21 +01:00
scsi_driver.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_eh.h scsi: core: Introduce enum scsi_disposition 2024-11-18 12:13:21 +01:00
scsi_host.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_ioctl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_proto.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_request.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_tcq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_transport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_transport_fc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_transport_iscsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_transport_sas.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_transport_spi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsi_transport_srp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scsicam.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
srp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
viosrp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00