linux-sg2042/drivers/scsi/isci
Nathan Chancellor 362b5da3df scsi: isci: Change sci_controller_start_task's return type to sci_status
Clang warns when an enumerated type is implicitly converted to another.

drivers/scsi/isci/request.c:3476:13: warning: implicit conversion from
enumeration type 'enum sci_task_status' to different enumeration type
'enum sci_status' [-Wenum-conversion]
                        status = sci_controller_start_task(ihost,
                               ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/isci/host.c:2744:10: warning: implicit conversion from
enumeration type 'enum sci_status' to different enumeration type 'enum
sci_task_status' [-Wenum-conversion]
                return SCI_SUCCESS;
                ~~~~~~ ^~~~~~~~~~~
drivers/scsi/isci/host.c:2753:9: warning: implicit conversion from
enumeration type 'enum sci_status' to different enumeration type 'enum
sci_task_status' [-Wenum-conversion]
        return status;
        ~~~~~~ ^~~~~~

Avoid all of these implicit conversion by just making
sci_controller_start_task use sci_status. This silences
Clang and has no functional change since sci_task_status
has all of its values mapped to something in sci_status.

Link: https://github.com/ClangBuiltLinux/linux/issues/153
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-10-16 21:38:47 -04:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
host.c scsi: isci: Change sci_controller_start_task's return type to sci_status 2018-10-16 21:38:47 -04:00
host.h scsi: isci: Change sci_controller_start_task's return type to sci_status 2018-10-16 21:38:47 -04:00
init.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
isci.h scsi: isci: Convert timers to use timer_setup() 2017-10-27 02:22:00 -07:00
phy.c scsi: isci: Convert timers to use timer_setup() 2017-10-27 02:22:00 -07:00
phy.h
port.c scsi: isci: Convert timers to use timer_setup() 2017-10-27 02:22:00 -07:00
port.h
port_config.c scsi: isci: Fix infinite loop in while loop 2018-04-20 19:23:32 -04:00
probe_roms.c scsi: isci: Add a missing call to pci_unmap_biosrom 2016-11-29 11:50:21 -05:00
probe_roms.h
registers.h scripts/spelling.txt: add regsiter -> register spelling mistake 2017-05-08 17:15:13 -07:00
remote_device.c arch: Mass conversion of smp_mb__*() 2014-04-18 14:20:48 +02:00
remote_device.h
remote_node_context.c scsi: isci: avoid array subscript warning 2016-11-29 11:46:08 -05:00
remote_node_context.h
remote_node_table.c
remote_node_table.h
request.c scsi: isci: Use proper enumerated type in atapi_d2h_reg_frame_handler 2018-10-16 21:37:43 -04:00
request.h
sas.h
scu_completion_codes.h
scu_event_codes.h
scu_remote_node_context.h
scu_task_context.h
task.c scsi: isci: Change sci_controller_start_task's return type to sci_status 2018-10-16 21:38:47 -04:00
task.h libsas: remove task_collector mode 2014-11-27 16:40:24 +01:00
unsolicited_frame_control.c
unsolicited_frame_control.h