linux/drivers/s390/scsi
Steffen Maier df91eefd08 scsi: zfcp: the action field of zfcp_erp_action is actually the type
&zfcp_erp_action.action ==> &zfcp_erp_action.type

While at it, make use of the already defined enum for this purpose to get
at least some build checking (even though an enum is type equivalent to an
int in C). v2.6.27 commit 287ac01acf ("[SCSI] zfcp: Cleanup code in
zfcp_erp.c") introduced the enum which was cpp defines previously.

To prevent compiler warnings with the switch(act->type), we have to
separate the recently added eyecatchers from enum zfcp_erp_act_type.

Since struct zfcp_erp_action type is embedded into other structures living
in zfcp_def.h, we have to move enum zfcp_erp_act_type from its private
definition in zfcp_erp.c to the zfcp-global zfcp_def.h.

Silence one false -Wswitch compiler warning case: LUNs as the leaves in our
object tree do not have any follow-up success recovery.

Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-11-15 15:01:18 -05:00
..
Makefile s390: add a few more SPDX identifiers 2017-12-05 07:51:09 +01:00
zfcp_aux.c scsi: zfcp: move SG table helper from aux to fc and make them static 2018-11-15 15:01:17 -05:00
zfcp_ccw.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zfcp_dbf.c scsi: zfcp: the action field of zfcp_erp_action is actually the type 2018-11-15 15:01:18 -05:00
zfcp_dbf.h scsi: zfcp: drop duplicate fsf_command from zfcp_fsf_req which is also in QTCB header 2018-11-15 15:01:17 -05:00
zfcp_def.h scsi: zfcp: the action field of zfcp_erp_action is actually the type 2018-11-15 15:01:18 -05:00
zfcp_erp.c scsi: zfcp: the action field of zfcp_erp_action is actually the type 2018-11-15 15:01:18 -05:00
zfcp_ext.h scsi: zfcp: clarify function argument name for trace tag string 2018-11-15 15:01:18 -05:00
zfcp_fc.c scsi: zfcp: move SG table helper from aux to fc and make them static 2018-11-15 15:01:17 -05:00
zfcp_fc.h scsi: zfcp: split FCP_CMND IU setup between SCSI I/O and TMF again 2018-05-18 11:22:11 -04:00
zfcp_fsf.c scsi: zfcp: update kernel message for invalid FCP_CMND length, it's not the CDB 2018-11-15 15:01:17 -05:00
zfcp_fsf.h scsi: zfcp: enhance comments on fc_link_speed and supported_speed 2018-05-18 11:28:17 -04:00
zfcp_qdio.c scsi: zfcp: clarify function argument name for trace tag string 2018-11-15 15:01:18 -05:00
zfcp_qdio.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zfcp_reqlist.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zfcp_scsi.c scsi: zfcp: drop duplicate fsf_command from zfcp_fsf_req which is also in QTCB header 2018-11-15 15:01:17 -05:00
zfcp_sysfs.c scsi: zfcp: support SCSI_ADAPTER_RESET via scsi_host sysfs attribute host_reset 2018-05-18 11:28:15 -04:00
zfcp_unit.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00