linux_dsm_epyc7002/drivers/s390/scsi
Steffen Maier d5fcdced31 scsi: zfcp: use enum zfcp_erp_act_result for argument/return of affected functions
With that instead of just "int" it becomes clear which functions return
this type and which ones also accept it as argument they just pass through
in some cases or modify in other cases.  v2.6.27 commit 287ac01acf
("[SCSI] zfcp: Cleanup code in zfcp_erp.c") introduced the enum which was
cpp defines previously.

Silence some false -Wswitch compiler warning cases with individual
NOP cases. When adding more enum values and building with W=1 we
would get compiler warnings about missed new cases.

Consistently use the variable name "result", so change "retval" in
zfcp_erp_strategy() to "result". This avoids confusion with other compile
unit variables "retval" having different semantics and type.

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: use enum zfcp_erp_steps for struct zfcp_erp_action.step 2018-11-15 15:01:18 -05:00
zfcp_erp.c scsi: zfcp: use enum zfcp_erp_act_result for argument/return of affected functions 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